net.ontopia.persistence.proxy
Interface IdentityIF

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
AtomicIdentity, Identity, LongIdentity, WrappedIdentity

public interface IdentityIF
extends java.lang.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
 java.lang.Object clone()
           
 java.lang.Object createInstance()
          INTERNAL: Creates an object instance of the type defined by this identity.
 java.lang.Object getKey(int index)
          INTERNAL: Returns the primary key component with the specified index.
 java.lang.Object getType()
          INTERNAL: Returns the type of object.
 int getWidth()
          INTERNAL: Returns the number of primary key components that the identity has.
 

Method Detail

getType

java.lang.Object getType()
INTERNAL: Returns the type of object. The returned value indicates the classification of the identified object. See also PersistentIF._p_getType().


getWidth

int getWidth()
INTERNAL: Returns the number of primary key components that the identity has.


getKey

java.lang.Object getKey(int index)
INTERNAL: Returns the primary key component with the specified index.


createInstance

java.lang.Object createInstance()
                                throws java.lang.Exception
INTERNAL: Creates an object instance of the type defined by this identity.

Throws:
java.lang.Exception

clone

java.lang.Object clone()


Copyright © 2000-2012 Ontopia.