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

Key (Hibernate API Documentation) - Hibernate 2.1.8 正式版 API 英文文档


net.sf.hibernate.engine
Class Key

java.lang.Object
  extended bynet.sf.hibernate.engine.Key
All Implemented Interfaces:
Serializable

public final class Key
extends Object
implements Serializable

A globally unique identifier of an instance. Consisting of the user-visible identifier and the identifier space (eg. tablename).

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
Key(Serializable id, ClassPersister p)
          Construct a unique identifier for an entity class instance
 
Method Summary
 boolean equals(Object other)
           
 Serializable getIdentifier()
          Get the user-visible identifier
 Class getMappedClass()
           
 int hashCode()
           
 boolean isBatchLoadable()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(Serializable id,
           ClassPersister p)
Construct a unique identifier for an entity class instance

Method Detail

getIdentifier

public Serializable getIdentifier()
Get the user-visible identifier


getMappedClass

public Class getMappedClass()

isBatchLoadable

public boolean isBatchLoadable()

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()