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 Detail

      • getType

        Class<?> 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

        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