| java.lang.Object org.jpox.identity.SingleFieldIdentity org.jpox.identity.ObjectIdentity
ObjectIdentity | public class ObjectIdentity extends SingleFieldIdentity (Code) | | Single-Field identity with an Object field.
Supports java.util.Date, java.util.Locale, java.util.Currency.
version: $Revision: 1.2 $ |
ObjectIdentity | public ObjectIdentity(Class pcClass, Object param)(Code) | | Constructor with class and key.
Parameters: pcClass - the class Parameters: param - the key |
ObjectIdentity | public ObjectIdentity()(Code) | | Constructor only for Externalizable.
|
equals | public boolean equals(Object obj)(Code) | | Determine if the other object represents the same object id.
Parameters: obj - the other object true if both objects represent the same object id |
toString | public String toString()(Code) | | Return the String form of the object id.
The class of the object id is written as the first part of the result so that the class can be
reconstructed later. Then the toString of the key instance is appended. During construction, this
process is reversed. The class is extracted from the first part of the String, and the String
constructor of the key is used to construct the key itself.
the String form of the key |
writeExternal | public void writeExternal(ObjectOutput out) throws IOException(Code) | | Write this object. Write the superclass first.
Parameters: out - the output |
|
|