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()
           
 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()

equals

public boolean equals(Object other)

hashCode

public int hashCode()

toString

public String toString()