|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jpox.store.OID
public class OID
An object identifier. OIDs are normally used as object identifiers for persistent objects that use datastore identity. They're also used for view objects, which actually use non-datastore identity. The behaviour of this class is governed by JDO spec 5.4.3.
Field Summary | |
---|---|
int |
hashCode
pre-created hasCode to improve performance * |
Object |
oid
The identity. |
String |
pcClass
The PersistenceCapable class name |
String |
toString
pre-created toString to improve performance * |
Constructor Summary | |
---|---|
OID()
Creates an OID with the no value. |
|
OID(String str)
Constructs an OID from its string representation that is consistent with the output of toString(). |
|
OID(String pcClass,
Object object)
Create a string datastore identity |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Equality operator. |
Object |
getNewObjectIdCopy()
Returns copy of the requested oid to be accessed by the user. |
String |
getPcClass()
Accessor for the PC class name |
int |
hashCode()
Accessor for the hashcode |
Object |
keyValue()
Provides the OID in a form that can be used by the database as a key. |
String |
toString()
Returns the string representation of the OID. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final Object oid
public final String pcClass
public final String toString
public final int hashCode
Constructor Detail |
---|
public OID()
public OID(String pcClass, Object object)
pcClass
- The PersistenceCapable class that this representsobject
- The valuepublic OID(String str) throws IllegalArgumentException
str
- the string representation of an OID.
IllegalArgumentException
- if the given string representation is not valid.toString
Method Detail |
---|
public Object getNewObjectIdCopy()
public Object keyValue()
public boolean equals(Object obj)
equals
in class Object
obj
- Object to compare against
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public String getPcClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |