wt.lite
Class AbstractLiteObject

java.lang.Object
  extended bywt.lite.AbstractLiteObject
All Implemented Interfaces:
Cloneable, Externalizable, Liteable, LocalizedStringDisplayable, Serializable
Direct Known Subclasses:
AbstractAttributeDefinizerView, AbstractCSMAttributeConstraintView, AbstractFormView, AbstractNavigationView, AbstractNodeView, AbstractQFElementValueView, AbstractQueryFormElementView, AbstractQueryTargetView, AbstractValueView, BusinessEntityDefaultView, ClassificationStructDefaultView, DefaultDisplayUnitsHolder, DefaultLiteIBAReferenceable, MeasurementSystemDefaultView, QuantityOfMeasureDefaultView, QueryResultsIBAHolder, RankingContextDefaultView, RankingDataDefaultView, TypeDefinitionDefaultView, TypeDefinitionNodeView

public abstract class AbstractLiteObject
extends Object
implements Liteable, Cloneable, LocalizedStringDisplayable, Externalizable

Represents the root of a Lightweight object hierarchy. The objectIdentifier field allows direct retrieval of its corresponding heavy object. The updateCount is used internally to keep track of update activity. The Lightweigh object implies its heavy object is pesistable. All IBA light objects implements this interface

Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
static int ILLEGAL_ACCESS
           
private  String localizedDisplayString
           
private  ObjectIdentifier objectID
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
static boolean SERVER
           
private  int updateCount
           
 
Fields inherited from interface wt.lite.Liteable
UPDATE_COUNT
 
Constructor Summary
AbstractLiteObject()
          

Supported API: false
AbstractLiteObject(int updateCount, ObjectIdentifier objectID)
          Every lite object created by each lite object service contains update count and object identifier.
 
Method Summary
 Object clone()
          

Supported API: false
 int compareUpdateCount(AbstractLiteObject object)
          Compare the Update Counts of the persisted objects.
 String getHeavyObjectClassname()
          

Supported API: false
 String getLocalizedDisplayString()
          Gets the value of the attribute: localizedDisplayString.
 ObjectIdentifier getObjectID()
          Gets the object for the association that plays role: objectID.
 int getUpdateCount()
          Gets the value of the attribute: updateCount.
 boolean isPersistedObjectEqual(AbstractLiteObject object)
          Checks Persited Object Ids.
private  void localizedDisplayStringValidate(String a_LocalizedDisplayString)
           
private  void objectIDValidate(ObjectIdentifier a_ObjectID)
           
 void readExternal(ObjectInput input)
          Reads the non-transient fields of this class from an external source.
private  boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source, which is not the current version.
protected  boolean readVersion(AbstractLiteObject thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 void setLocalizedDisplayString(String a_LocalizedDisplayString)
          Sets the value of the attribute: localizedDisplayString.
 void setObjectID(ObjectIdentifier a_ObjectID)
          Sets the object for the association that plays role: objectID.
 void setUpdateCount(int a_UpdateCount)
          Sets the value of the attribute: updateCount.
 void writeExternal(ObjectOutput output)
          Writes the non-transient fields of this class to an external source.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

localizedDisplayString

private String localizedDisplayString

objectID

private ObjectIdentifier objectID

updateCount

private int updateCount

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

EXTERNALIZATION_VERSION_UID

public static final long EXTERNALIZATION_VERSION_UID
See Also:
Constant Field Values

OLD_FORMAT_VERSION_UID

protected static final long OLD_FORMAT_VERSION_UID
See Also:
Constant Field Values

SERVER

public static final boolean SERVER
See Also:
Constant Field Values

ILLEGAL_ACCESS

public static final int ILLEGAL_ACCESS
See Also:
Constant Field Values
Constructor Detail

AbstractLiteObject

public AbstractLiteObject(int updateCount,
                          ObjectIdentifier objectID)
                   throws WTException
Every lite object created by each lite object service contains update count and object identifier. These attributes are reserved for server uses only. The client code should not use these attributes.

Supported API: false

Parameters:
updateCount -
objectID -
Throws:
WTException

AbstractLiteObject

public AbstractLiteObject()


Supported API: false

Method Detail

writeExternal

public void writeExternal(ObjectOutput output)
                   throws IOException
Writes the non-transient fields of this class to an external source.

Supported API: false

Specified by:
writeExternal in interface Externalizable
Parameters:
output -
Throws:
IOException

readExternal

public void readExternal(ObjectInput input)
                  throws IOException,
                         ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Specified by:
readExternal in interface Externalizable
Parameters:
input -
Throws:
IOException
ClassNotFoundException

readVersion

protected boolean readVersion(AbstractLiteObject thisObject,
                              ObjectInput input,
                              long readSerialVersionUID,
                              boolean passThrough,
                              boolean superDone)
                       throws IOException,
                              ClassNotFoundException
Reads the non-transient fields of this class from an external source.

Supported API: false

Parameters:
thisObject -
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

readOldVersion

private boolean readOldVersion(ObjectInput input,
                               long readSerialVersionUID,
                               boolean passThrough,
                               boolean superDone)
                        throws IOException,
                               ClassNotFoundException
Reads the non-transient fields of this class from an external source, which is not the current version.

Parameters:
input -
readSerialVersionUID -
passThrough -
superDone -
Returns:
boolean
Throws:
IOException
ClassNotFoundException

getLocalizedDisplayString

public String getLocalizedDisplayString()
Gets the value of the attribute: localizedDisplayString.

Supported API: false

Specified by:
getLocalizedDisplayString in interface LocalizedStringDisplayable
Returns:
String

setLocalizedDisplayString

public void setLocalizedDisplayString(String a_LocalizedDisplayString)
                               throws WTPropertyVetoException
Sets the value of the attribute: localizedDisplayString.

Supported API: false

Parameters:
a_LocalizedDisplayString -
Throws:
WTPropertyVetoException

localizedDisplayStringValidate

private void localizedDisplayStringValidate(String a_LocalizedDisplayString)
                                     throws WTPropertyVetoException
Parameters:
a_LocalizedDisplayString -
Throws:
WTPropertyVetoException

getObjectID

public ObjectIdentifier getObjectID()
Gets the object for the association that plays role: objectID.

Supported API: false

Returns:
ObjectIdentifier

setObjectID

public void setObjectID(ObjectIdentifier a_ObjectID)
                 throws WTPropertyVetoException
Sets the object for the association that plays role: objectID.

Supported API: false

Parameters:
a_ObjectID -
Throws:
WTPropertyVetoException

objectIDValidate

private void objectIDValidate(ObjectIdentifier a_ObjectID)
                       throws WTPropertyVetoException
Parameters:
a_ObjectID -
Throws:
WTPropertyVetoException

isPersistedObjectEqual

public boolean isPersistedObjectEqual(AbstractLiteObject object)
Checks Persited Object Ids. Returns true if they are the same, otherwise returns false.

Supported API: false

Parameters:
object -
Returns:
boolean

compareUpdateCount

public int compareUpdateCount(AbstractLiteObject object)
Compare the Update Counts of the persisted objects. If this.updateCount == object.updateCount => return 0 If this.updateCount > object.updateCount => return 1 If this.updateCount < object.updateCount => return -1

Supported API: false

Parameters:
object -
Returns:
int

clone

public Object clone()


Supported API: false

Returns:
Object

getHeavyObjectClassname

public String getHeavyObjectClassname()


Supported API: false

Returns:
String

getUpdateCount

public int getUpdateCount()
Gets the value of the attribute: updateCount.

Supported API: false

Specified by:
getUpdateCount in interface Liteable
Returns:
int

setUpdateCount

public void setUpdateCount(int a_UpdateCount)
                    throws WTPropertyVetoException
Sets the value of the attribute: updateCount.

Supported API: false

Specified by:
setUpdateCount in interface Liteable
Parameters:
a_UpdateCount -
Throws:
WTPropertyVetoException