Package net.ontopia.persistence.proxy
Interface IdentityIF
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
AtomicIdentity,Identity,LongIdentity,WrappedIdentity
INTERNAL: Interface used to represent data store object
identity. The identity has two parts; the type of object and an
ordered list of primary key components. Note that an identity
instance should always be immutable.
Warning: Implementations of this class must all have the same
hashCode() behaviour.
-
Method Summary
Modifier and TypeMethodDescriptionclone()INTERNAL: Creates an object instance of the type defined by this identity.getKey(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.
-
Method Details
-
getType
Class<?> getType()INTERNAL: Returns the type of object. The returned value indicates the classification of the identified object. See alsoPersistentIF._p_getType(). -
getWidth
int getWidth()INTERNAL: Returns the number of primary key components that the identity has. -
getKey
INTERNAL: Returns the primary key component with the specified index. -
createInstance
INTERNAL: Creates an object instance of the type defined by this identity.- Throws:
Exception
-
clone
Object clone()
-