kodo.util
Class SingleFieldIdentity
java.lang.Object
|
+--kodo.util.SingleFieldIdentity
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- ByteIdentity, CharIdentity, IntIdentity, LongIdentity, ShortIdentity, StringIdentity
- public class SingleFieldIdentity
- extends Object
- implements Serializable
JDO 2 Preview. An object id class which provides application
identity services to persistent classes with only a single primary key
field. Each instance can provide the primary key value by an appropriate
version of getKey ()
.
- See Also:
- Serialized Form
SingleFieldIdentity
protected SingleFieldIdentity(Class cls)
getTargetClass
public Class getTargetClass()
- Return the class which this id instance is representing. If this
instance has been serialized, will return null.
getTargetClassName
public String getTargetClassName()
- Return the class name of the instance this is representing.
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.