|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object LOID
LOID is the Logical Object IDentifier for a persistent object. A LOID consists of a database ID, a class ID, and an object ID (OID). The OID uniquely identifies a persistent object in an environment. An object migrating from one database to another would retain its unique identity while the database ID would be adjusted to reflect the migration. The class ID and database ID are included in the OID to allow performance optimizations in the persistence mechanism.
Constructor Summary | |
LOID(short databaseID,
short classID,
long objectID)
Construct a LOID. |
Method Summary | |
short |
classID()
Returns the class identifier of this LOID. |
int |
compareTo(Object loid)
Compare two LOIDs. |
short |
databaseID()
Returns the database identifier of this LOID. |
boolean |
equals(LOID loid)
Returns true if two LOIDs are equal. |
long |
oid()
Returns the object identifier of this LOID. |
String |
toString()
Returns a string representation of this LOID. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public LOID(short databaseID, short classID, long objectID)
databaseID
- the database identifier.classID
- the class identifier.objectID
- the object identifier.Method Detail |
public int compareTo(Object loid) throws NullPointerException
compareTo
in interface Comparable
loid
- the LOID to be compared with this LOID.
loid
, or +1 if this LOID is greater
than loid
.
NullPointerException
- if loid
is null.public boolean equals(LOID loid)
loid
- the LOID to be compared with this LOID.
public short databaseID()
public short classID()
public long oid()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |