|
||||||||||
| 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 | |
|---|---|
protected |
OID()
Protected default constructor invoked through reflection for testing only. |
|
OID(ClassMolder molder,
Identity identity)
Constructor. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if the two OID's are identical. |
OID |
getDepended()
Get the depended object's OID. |
Identity |
getIdentity()
Return the object's identity, if known. |
int |
hashCode()
|
boolean |
isDbLock()
Returns true if the object represented by this OID has a database lock. |
void |
setDepended(OID depended)
Set the depended object's oid. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected OID()
public OID(ClassMolder molder,
Identity identity)
molder - ClassMolder of the entity.identity - Identity of the entity.| Method Detail |
|---|
public Identity getIdentity()
public void setDepended(OID depended)
depended - The depended object's oid.public OID getDepended()
public boolean isDbLock()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||