Package net.ontopia.persistence.proxy
Class Identity
java.lang.Object
net.ontopia.persistence.proxy.Identity
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,IdentityIF
INTERNAL: Class used for representing data store object identities
with more than a single key. See
IdentityIF.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()intINTERNAL: Creates an object instance of the type defined by this identity.booleangetKey(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()voidtoString()void
-
Constructor Details
-
Identity
public Identity()INTERNAL: Constructor that is used for externalization purposes only. -
Identity
INTERNAL: Creates an identity instance of the given type with the given keys.
-
-
Method Details
-
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
Description copied from interface:IdentityIFINTERNAL: Returns the primary key component with the specified index.- Specified by:
getKeyin interfaceIdentityIF
-
createInstance
Description copied from interface:IdentityIFINTERNAL: Creates an object instance of the type defined by this identity.- Specified by:
createInstancein interfaceIdentityIF- Throws:
Exception
-
hashCode
public int hashCode() -
computeHashCode
public int computeHashCode() -
equals
-
toString
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
clone
- Specified by:
clonein interfaceIdentityIF- Overrides:
clonein classObject
-