Package net.ontopia.persistence.proxy
Interface IdentityIF
-
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
AtomicIdentity,Identity,LongIdentity,WrappedIdentity
public interface IdentityIF extends Cloneable
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectclone()ObjectcreateInstance()INTERNAL: Creates an object instance of the type defined by this identity.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.
-
-
-
Method Detail
-
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
Object getKey(int index)
INTERNAL: Returns the primary key component with the specified index.
-
createInstance
Object createInstance() throws Exception
INTERNAL: Creates an object instance of the type defined by this identity.- Throws:
Exception
-
clone
Object clone()
-
-