| java.lang.Object org.jpox.identity.SingleFieldIdentity
All known Subclasses: org.jpox.identity.IntIdentity, org.jpox.identity.StringIdentity, org.jpox.identity.ShortIdentity, org.jpox.identity.CharIdentity, org.jpox.identity.ByteIdentity, org.jpox.identity.ObjectIdentity, org.jpox.identity.LongIdentity,
SingleFieldIdentity | abstract public class SingleFieldIdentity implements Externalizable(Code) | | Abstract base class for all single-field identitiy classes.
version: $Revision: 1.1 $ |
hashCode | protected int hashCode(Code) | | The hashCode.
|
keyAsObject | protected Object keyAsObject(Code) | | The key as an Object.
|
SingleFieldIdentity | protected SingleFieldIdentity(Class pcClass)(Code) | | Constructor with target class.
Parameters: pcClass - the class of the target |
SingleFieldIdentity | public SingleFieldIdentity()(Code) | | Constructor only for Externalizable.
|
assertKeyNotNull | protected void assertKeyNotNull(Object key)(Code) | | Assert that the key is not null. Throw a JDONullIdentityException if the given key is null.
|
createKeyAsObject | protected Object createKeyAsObject()(Code) | | Create the key as an Object.
the key as an Object; |
equals | public boolean equals(Object obj)(Code) | | Check the class and class name and object type. If restored from serialization, class will be null so compare
class name.
Parameters: obj - the other object true if the class or class name is the same |
getKeyAsObject | public synchronized Object getKeyAsObject()(Code) | | Return the key as an Object. The method is synchronized to avoid race conditions in multi-threaded environments.
the key as an Object. |
getTargetClass | public Class getTargetClass()(Code) | | Return the target class.
the target class. since: 2.0 |
getTargetClassName | public String getTargetClassName()(Code) | | Return the target class name.
the target class name. |
hashClassName | protected int hashClassName()(Code) | | Return the hash code of the class name.
the hash code of the class name |
hashCode | public int hashCode()(Code) | | Return the cached hash code.
the cached hash code. |
setKeyAsObject | protected void setKeyAsObject(Object key)(Code) | | Set the given key as the key for this instance. Compute the hash code for the instance.
|
|
|