|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jdo.impl.fostore.OID
Represents the identity of a JDO object in the File/Object store. This implementation uses datastore identity. The identity is based on the class of the object and a unique identifier within that class. These OID's are unique only within a single datastore.
This class is public
as required by the JDO specification.
Field Summary | |
long |
oid
The 'value' of this OID. |
Constructor Summary | |
OID()
Creates an OID with the no value. |
|
OID(long oid)
Creates an OID with the given value. |
|
OID(java.lang.String str)
Constructor that takes the result of toString() and creates a new OID. |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compare this OID to another OID. |
boolean |
equals(java.lang.Object other)
Determines if this OID is equal to another. |
org.apache.jdo.impl.fostore.CLID |
getCLID()
Provides the CLID part of this OID. |
long |
getUID()
Provides the unique id part of this OID. |
int |
hashCode()
Provides a JVM-unique hashCode for this OID. |
boolean |
isProvisional()
Indicates whether this OID is provisional. |
java.lang.String |
oidString()
Returns the id itself in String form, for debugging. |
java.lang.String |
toString()
Returns a String representation of this OID. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public long oid
Constructor Detail |
public OID()
public OID(java.lang.String str)
toString()
public OID(long oid)
Method Detail |
public boolean isProvisional()
public org.apache.jdo.impl.fostore.CLID getCLID()
public long getUID()
public int hashCode()
public boolean equals(java.lang.Object other)
other
- The other OID in the equality comparison.
public java.lang.String toString()
public java.lang.String oidString()
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |