|
|||||||||
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 | |
(package private) |
OID(LockEngine engine,
ClassMolder molder,
java.lang.Object identity)
Constructor |
(package private) |
OID(LockEngine engine,
ClassMolder molder,
OID depends,
java.lang.Object 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 |
(package private) java.lang.Object |
getIdentity()
Return the object's identity, if known. |
(package private) LockEngine |
getLockEngine()
Get the LockEngine of this object |
(package private) 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()
|
(package private) 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 |
OID(LockEngine engine, ClassMolder molder, java.lang.Object identity)
OID(LockEngine engine, ClassMolder molder, OID depends, java.lang.Object identity)
Method Detail |
public OID getDepends()
ClassMolder getMolder()
LockEngine getLockEngine()
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 lockboolean isDbLock()
java.lang.Object 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 |