|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.persist.OID
public final class OID
Object identifier. An object identifier is unique within a cache engine or other persistence mechanism and is used to locate object based on their identity as well as assure no duplicate identities. The object type and it's identity object define the OID's identity. In addition the OID is used to hold the object's stamp and db-lock access fields which are used to optimize dirty checking within a transaction.
Constructor Summary | |
---|---|
OID(ClassMolder molder,
Identity identity)
Constructor. |
|
OID(ClassMolder molder,
OID depends,
Identity identity)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if the two OID's are identical. |
OID |
getDepends()
Get the depended object's oid. |
Identity |
getIdentity()
Return the object's identity, if known. |
ClassMolder |
getMolder()
Get the ClassMolder of this object. |
int |
hashCode()
|
boolean |
isDbLock()
Returns true if the object represented by this OID has a database lock. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OID(ClassMolder molder, Identity identity)
public OID(ClassMolder molder, OID depends, Identity identity)
Method Detail |
---|
public OID getDepends()
public ClassMolder getMolder()
public boolean isDbLock()
public Identity getIdentity()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |