Package net.ontopia.persistence.proxy
Class Identity
- java.lang.Object
-
- net.ontopia.persistence.proxy.Identity
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,IdentityIF
public final class Identity extends Object implements IdentityIF, Externalizable
INTERNAL: Class used for representing data store object identities with more than a single key. SeeIdentityIF.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()intcomputeHashCode()ObjectcreateInstance()INTERNAL: Creates an object instance of the type defined by this identity.booleanequals(Object object)ObjectgetKey(int index)INTERNAL: Returns the primary key component with the specified index.Class<?>getType()INTERNAL: Returns the type of object.intgetWidth()INTERNAL: Returns the number of primary key components that the identity has.inthashCode()voidreadExternal(ObjectInput in)StringtoString()voidwriteExternal(ObjectOutput out)
-
-
-
Method Detail
-
getType
public Class<?> getType()
Description copied from interface:IdentityIFINTERNAL: Returns the type of object. The returned value indicates the classification of the identified object. See alsoPersistentIF._p_getType().- Specified by:
getTypein interfaceIdentityIF
-
getWidth
public int getWidth()
Description copied from interface:IdentityIFINTERNAL: Returns the number of primary key components that the identity has.- Specified by:
getWidthin interfaceIdentityIF
-
getKey
public Object getKey(int index)
Description copied from interface:IdentityIFINTERNAL: Returns the primary key component with the specified index.- Specified by:
getKeyin interfaceIdentityIF
-
createInstance
public Object createInstance() throws Exception
Description copied from interface:IdentityIFINTERNAL: Creates an object instance of the type defined by this identity.- Specified by:
createInstancein interfaceIdentityIF- Throws:
Exception
-
computeHashCode
public int computeHashCode()
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
clone
public Object clone()
- Specified by:
clonein interfaceIdentityIF- Overrides:
clonein classObject
-
-