|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.exolab.castor.persist.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. |
(package private) java.lang.String |
getName()
Return the full qualified name of the object's type. |
(package private) java.lang.Object |
getStamp()
Returns the OID's stamp. |
(package private) java.lang.String[] |
getSuperClassNames()
Return the full qualified names of the object's superclasses, if any, otherwise returns null. |
int |
hashCode()
|
boolean |
isDbLock()
Returns true if the object represented by this OID has a database lock. |
(package private) void |
setDbLock(boolean dbLock)
Specifies whether the object represented by this OID has a database lock. |
(package private) void |
setStamp(java.lang.Object stamp)
Sets the OID's stamp. |
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()
java.lang.Object getStamp()
setStamp(java.lang.Object)when
the object is loaded, created or stored in persistent storage. Not all
persistence engines support the stamp mechanism.
void setStamp(java.lang.Object stamp)
stamp - The OID's stampvoid setDbLock(boolean dbLock)
dbLock - True the object represented by this OID has a database lockpublic boolean isDbLock()
public Identity getIdentity()
java.lang.String getName()
java.lang.String[] getSuperClassNames()
public boolean equals(java.lang.Object obj)
public java.lang.String toString()
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||