| |
|
| java.lang.Object org.jpox.identity.OIDImpl
OIDImpl | public class OIDImpl implements java.io.Serializable,OID(Code) | | 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.
Utilises a String form of the style "3258[OID]mydomain.MyClass".
version: $Revision: 1.2 $ |
Constructor Summary | |
public | OIDImpl() Creates an OID with no value. | public | OIDImpl(String pcClass, Object object) Create a string datastore identity. | public | OIDImpl(String str) Constructs an OID from its string representation that is consistent with the output of toString(). |
Method Summary | |
public boolean | equals(Object obj) Equality operator. | 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 PC class name
and the key value. |
LOCALISER | final protected static transient Localiser LOCALISER(Code) | | Localiser for messages.
|
hashCode | final public int hashCode(Code) | | pre-created hasCode to improve performance *
|
pcClass | final public String pcClass(Code) | | The PersistenceCapable class name
|
toString | final public String toString(Code) | | pre-created toString to improve performance *
|
OIDImpl | public OIDImpl()(Code) | | Creates an OID with no value. Required by the JDO spec
|
OIDImpl | public OIDImpl(String pcClass, Object object)(Code) | | Create a string datastore identity.
Parameters: pcClass - The PersistenceCapable class that this represents Parameters: object - The value |
equals | public boolean equals(Object obj)(Code) | | Equality operator.
Parameters: obj - Object to compare against Whether they are equal |
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 PC class name
and the key value. This will be something like
3254[OID]mydomain.MyClass
The String form of the identity |
|
|
|