站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Hibernate 3.2.3 正式版 API 英文文档

EntityKey (Hibernate API Documentation) - Hibernate 3.2.3 正式版 API 英文文档


org.hibernate.engine
Class EntityKey

java.lang.Object
  extended byorg.hibernate.engine.EntityKey
All Implemented Interfaces:
Serializable

public final class EntityKey
extends Object
implements 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(Serializable id, EntityPersister persister, EntityMode entityMode)
          Construct a unique identifier for an entity class instance
 
Method Summary
 boolean equals(Object other)
           
 String getEntityName()
           
 Serializable getIdentifier()
          Get the user-visible identifier
 int hashCode()
           
 boolean isBatchLoadable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityKey

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

Method Detail

isBatchLoadable

public boolean isBatchLoadable()

getIdentifier

public Serializable getIdentifier()
Get the user-visible identifier


getEntityName

public String getEntityName()

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()