org.hibernate.engine
Class EntityKey
java.lang.Object
org.hibernate.engine.EntityKey
- All Implemented Interfaces:
- java.io.Serializable
public final class EntityKey
- extends java.lang.Object
- implements java.io.Serializable
Uniquely identifies of an entity instance in a particular session by identifier.
Uniqueing information consists of the entity-name and the identifier value.
- Author:
- Gavin King
- See Also:
EntityUniqueKey
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EntityKey
public EntityKey(java.io.Serializable id,
EntityPersister persister,
EntityMode entityMode)
- Construct a unique identifier for an entity class instance
isBatchLoadable
public boolean isBatchLoadable()
getIdentifier
public java.io.Serializable getIdentifier()
- Get the user-visible identifier
getEntityName
public java.lang.String getEntityName()
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008 Hibernate.org. All Rights Reserved.