| |
|
| java.lang.Object org.jpox.identity.DatastoreUniqueOID
DatastoreUniqueOID | public class DatastoreUniqueOID implements java.io.Serializable,OID(Code) | | Identity for use with datastore-identity where the datastore provides a unique "identity" key per object
and hence doesn't need the class name. The behaviour of this class is governed by JDO spec 5.4.3.
Main benefit over OIDImpl is size.
version: $Revision: 1.1 $ |
Field Summary | |
final public long | key The key value. |
Method Summary | |
public boolean | equals(Object obj) Equality operator. | public long | getKey() Convenience accessor for the long form of the key. | public Object | getKeyValue() Accessor for the key value. | public String | getPcClass() Accessor for the PersistenceCapable class name. | public int | hashCode() | public String | toString() Creates a String representation of the datastore identity, formed from the key value. |
key | final public long key(Code) | | The key value.
|
DatastoreUniqueOID | public DatastoreUniqueOID()(Code) | | Creates an OID with no value. Required by the JDO spec.
|
DatastoreUniqueOID | public DatastoreUniqueOID(long key)(Code) | | Constructor taking the long form of the key.
Parameters: key - The key |
equals | public boolean equals(Object obj)(Code) | | Equality operator.
Parameters: obj - Object to compare against Whether they are equal |
getKey | public long getKey()(Code) | | Convenience accessor for the long form of the key.
long primitive form of the key |
getKeyValue | public Object getKeyValue()(Code) | | Accessor for the key value.
The key value |
getPcClass | public String getPcClass()(Code) | | Accessor for the PersistenceCapable class name.
PC class name |
hashCode | public int hashCode()(Code) | | Accessor for the hashcode
Hashcode for this object |
toString | public String toString()(Code) | | Creates a String representation of the datastore identity, formed from the key value.
This will be something like 3254
The String form of the identity |
|
|
|