wt.lite
Class DefaultLightweightInfo

java.lang.Object
  extended bywt.lite.DefaultLightweightInfo
All Implemented Interfaces:
Externalizable, LightweightInfo, Serializable

public class DefaultLightweightInfo
extends Object
implements LightweightInfo, Externalizable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
static long EXTERNALIZATION_VERSION_UID
           
private  ObjectIdentifier key
           
protected static long OLD_FORMAT_VERSION_UID
           
private static String RESOURCE
           
(package private) static long serialVersionUID
           
private  int updateCount
           
 
Constructor Summary
DefaultLightweightInfo()
          

Supported API: false
DefaultLightweightInfo(Lightweight a_lightweight, Object a_context_object)
          

Supported API: false
 
Method Summary
protected  void checkInfoSet()
          

Supported API: false
 int compareFreshness(Lightweight a_lightweight)
          

Supported API: false
 boolean equals(Lightweight a_lightweight, Object an_object)
          

Supported API: false
 Object getHeavyWeight(Lightweight a_lightweight)
          

Supported API: false
 ObjectIdentifier getKey()
          Gets the object for the association that plays role: key.
 int getUpdateCount()
          Gets the value of the attribute: updateCount.
 int hashCode()
          

Supported API: false
 void initialize(Lightweight a_lightweight, Object a_context_object)
          

Supported API: false
 boolean isStillValid()
          

Supported API: false
private  void keyValidate(ObjectIdentifier a_Key)
           
 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(DefaultLightweightInfo thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone)
          Reads the non-transient fields of this class from an external source.
 boolean references(Lightweight a_lightweight)
          

Supported API: false
 boolean references(Persistable an_object)
          

Supported API: false
 void refresh()
          

Supported API: false
 void setKey(ObjectIdentifier a_Key)
          Sets the object for the association that plays role: key.
 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
clone, equals, finalize, getClass, 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

updateCount

private int updateCount

key

private ObjectIdentifier key

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
Constructor Detail

DefaultLightweightInfo

public DefaultLightweightInfo(Lightweight a_lightweight,
                              Object a_context_object)


Supported API: false

Parameters:
a_lightweight -
a_context_object -

DefaultLightweightInfo

public DefaultLightweightInfo()


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(DefaultLightweightInfo 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

getUpdateCount

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

Supported API: false

Returns:
int

setUpdateCount

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

Supported API: false

Parameters:
a_UpdateCount -
Throws:
WTPropertyVetoException

getKey

public ObjectIdentifier getKey()
Gets the object for the association that plays role: key.

Supported API: false

Returns:
ObjectIdentifier

setKey

public void setKey(ObjectIdentifier a_Key)
            throws WTPropertyVetoException
Sets the object for the association that plays role: key.

Supported API: false

Parameters:
a_Key -
Throws:
WTPropertyVetoException

keyValidate

private void keyValidate(ObjectIdentifier a_Key)
                  throws WTPropertyVetoException
Parameters:
a_Key -
Throws:
WTPropertyVetoException

checkInfoSet

protected void checkInfoSet()


Supported API: false


isStillValid

public boolean isStillValid()


Supported API: false

Specified by:
isStillValid in interface LightweightInfo
Returns:
boolean

getHeavyWeight

public Object getHeavyWeight(Lightweight a_lightweight)


Supported API: false

Specified by:
getHeavyWeight in interface LightweightInfo
Parameters:
a_lightweight -
Returns:
Object

equals

public boolean equals(Lightweight a_lightweight,
                      Object an_object)


Supported API: false

Specified by:
equals in interface LightweightInfo
Parameters:
a_lightweight -
an_object -
Returns:
boolean

hashCode

public int hashCode()


Supported API: false

Specified by:
hashCode in interface LightweightInfo
Returns:
int

refresh

public void refresh()


Supported API: false

Specified by:
refresh in interface LightweightInfo

references

public boolean references(Persistable an_object)


Supported API: false

Specified by:
references in interface LightweightInfo
Parameters:
an_object -
Returns:
boolean

references

public boolean references(Lightweight a_lightweight)


Supported API: false

Specified by:
references in interface LightweightInfo
Parameters:
a_lightweight -
Returns:
boolean

initialize

public void initialize(Lightweight a_lightweight,
                       Object a_context_object)


Supported API: false

Specified by:
initialize in interface LightweightInfo
Parameters:
a_lightweight -
a_context_object -

compareFreshness

public int compareFreshness(Lightweight a_lightweight)


Supported API: false

Specified by:
compareFreshness in interface LightweightInfo
Parameters:
a_lightweight -
Returns:
int