Interface InstanceIdentity

All Known Subinterfaces:
ManagedEntity, PersistentCollection<E>
All Known Implementing Classes:
AbstractPersistentCollection, PersistentArrayHolder, PersistentBag, PersistentIdentifierBag, PersistentList, PersistentMap, PersistentSet, PersistentSortedMap, PersistentSortedSet

public interface InstanceIdentity
Contract for classes whose instances are uniquely identifiable through a simple int value, and can be mapped via InstanceIdentityMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Retrieve the unique identifier of this instance
    void
    Set the value of the unique identifier for this instance
  • Method Details

    • $$_hibernate_getInstanceId

      int $$_hibernate_getInstanceId()
      Retrieve the unique identifier of this instance
      Returns:
      the unique instance identifier
    • $$_hibernate_setInstanceId

      void $$_hibernate_setInstanceId(int instanceId)
      Set the value of the unique identifier for this instance
      Parameters:
      instanceId - the unique identifier value to set