|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.core.foundation.ObjectVersion
This class defines an object version. Two objects with the same object id but different version numbers are different object instances. The datastore is responsible for managing the object version.
PersistentObject
,
Serialized FormConstructor Summary | |
ObjectVersion()
The default constructore is used to instantiate an instance of this class without initializing the id attribute |
|
ObjectVersion(long version)
Construct an object with the specified version |
Method Summary | |
boolean |
equals(java.lang.Object object)
Determine whether the two objects are equality. |
long |
getVersion()
Return the object's version number |
void |
setVersion(long version)
Set the persistent object version number |
java.lang.String |
toString()
Return a string representation of this object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ObjectVersion()
public ObjectVersion(long version)
version
- object versionMethod Detail |
public void setVersion(long version)
version
- public long getVersion()
public boolean equals(java.lang.Object object)
object
- the object to test against
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |