org.hibernate.engine
Class EntityUniqueKey
java.lang.Object
org.hibernate.engine.EntityUniqueKey
- All Implemented Interfaces:
- java.io.Serializable
- public class EntityUniqueKey
- extends java.lang.Object
- implements java.io.Serializable
Used to uniquely key an entity instance in relation to a particular session
by some unique property reference, as opposed to identifier.
Uniqueing information consists of the entity-name, the referenced
property name, and the referenced property value.
- Author:
- Gavin King
- See Also:
EntityKey
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
EntityUniqueKey
public EntityUniqueKey(java.lang.String entityName,
java.lang.String uniqueKeyName,
java.lang.Object semiResolvedKey,
Type keyType,
EntityMode entityMode,
SessionFactoryImplementor factory)
getEntityName
public java.lang.String getEntityName()
getKey
public java.lang.Object getKey()
getUniqueKeyName
public java.lang.String getUniqueKeyName()
generateHashCode
public int generateHashCode(SessionFactoryImplementor factory)
hashCode
public int hashCode()
equals
public boolean equals(java.lang.Object other)
toString
public java.lang.String toString()