org.hibernate.engine
Class EntityUniqueKey
java.lang.Object
org.hibernate.engine.EntityUniqueKey
- All Implemented Interfaces:
- Serializable
public class EntityUniqueKey
- extends Object
- implements 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
EntityUniqueKey
public EntityUniqueKey(String entityName,
String uniqueKeyName,
Object semiResolvedKey,
Type keyType,
EntityMode entityMode,
SessionFactoryImplementor factory)
getEntityName
public String getEntityName()
getKey
public Object getKey()
getUniqueKeyName
public String getUniqueKeyName()
generateHashCode
public int generateHashCode(SessionFactoryImplementor factory)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object other)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001-2010 Red Hat, Inc. All Rights Reserved.