|
||||||||
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(LockEngine engine,
ClassMolder molder,
java.lang.Object identity)
Constructor |
|
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 |
java.lang.Object |
getIdentity()
Return the object's identity, if known. |
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()
|
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(LockEngine engine, ClassMolder molder, java.lang.Object identity)
public OID(LockEngine engine, ClassMolder molder, OID depends, java.lang.Object identity)
Method Detail |
---|
public OID getDepends()
ClassMolder getMolder()
public 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 lockpublic boolean isDbLock()
public java.lang.Object getIdentity()
java.lang.String getName()
java.lang.String[] getSuperClassNames()
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 |