org.hibernate.engine
Class EntityKey

java.lang.Object
  extended by 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

Constructor Summary
EntityKey(java.io.Serializable id, EntityPersister persister, EntityMode entityMode)
          Construct a unique identifier for an entity class instance
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.String getEntityName()
           
 java.io.Serializable getIdentifier()
          Get the user-visible identifier
 int hashCode()
           
 boolean isBatchLoadable()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityKey

public EntityKey(java.io.Serializable id,
                 EntityPersister persister,
                 EntityMode entityMode)
Construct a unique identifier for an entity class instance

Method Detail

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.