|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jpox.store.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 |
java.lang.Object |
oid
The identity. |
java.lang.String |
pcClass
The PersistenceCapable class name |
java.lang.String |
toString
pre-created toString to improve performance |
Constructor Summary | |
OID()
Creates an OID with the no value. |
|
OID(java.lang.String str)
Constructs an OID from its string representation that is consistent with the output of toString(). |
|
OID(java.lang.String pcClass,
java.lang.Object object)
Create a string datastore identity |
Method Summary | |
boolean |
equals(java.lang.Object obj)
Equality operator. |
java.lang.Object |
getNewObjectIdCopy()
Returns copy of the requested oid to be accessed by the user. |
java.lang.String |
getPcClass()
Accessor for the PC class name |
int |
hashCode()
Accessor for the hashcode |
java.lang.Object |
keyValue()
Provides the OID in a form that can be used by the database as a key. |
java.lang.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 java.lang.Object oid
public final java.lang.String pcClass
public final java.lang.String toString
public final int hashCode
Constructor Detail |
public OID()
public OID(java.lang.String pcClass, java.lang.Object object)
pcClass
- The PersistenceCapable class that this representsobject
- The valuepublic OID(java.lang.String str) throws java.lang.IllegalArgumentException
str
- the string representation of an OID.
java.lang.IllegalArgumentException
- if the given string representation is not valid.toString
Method Detail |
public java.lang.Object getNewObjectIdCopy()
public java.lang.Object keyValue()
public boolean equals(java.lang.Object obj)
obj
- Object to compare against
public int hashCode()
public java.lang.String toString()
public java.lang.String getPcClass()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |