org.hibernate.engine

Class EntityKey

Implemented Interfaces:
Serializable

public final class EntityKey
extends java.lang.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

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

Constructor Details

EntityKey

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

Method Details

equals

public boolean equals(Object other)

getEntityName

public String getEntityName()

getIdentifier

public Serializable getIdentifier()
Get the user-visible identifier

hashCode

public int hashCode()

isBatchLoadable

public boolean isBatchLoadable()

toString

public String toString()