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()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
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.