public final class EntityKey
extends java.lang.Object
implements java.io.Serializable
equals(java.lang.Object)
).Constructor and Description |
---|
EntityKey(java.io.Serializable id,
EntityPersister persister,
java.lang.String tenantId)
Construct a unique identifier for an entity class instance.
|
Modifier and Type | Method and Description |
---|---|
static EntityKey |
deserialize(java.io.ObjectInputStream ois,
SessionImplementor session)
Custom deserialization routine used during deserialization of a
Session/PersistenceContext for increased performance.
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
getEntityName() |
java.io.Serializable |
getIdentifier() |
int |
hashCode() |
boolean |
isBatchLoadable() |
void |
serialize(java.io.ObjectOutputStream oos)
Custom serialization routine used during serialization of a
Session/PersistenceContext for increased performance.
|
java.lang.String |
toString() |
public EntityKey(java.io.Serializable id, EntityPersister persister, java.lang.String tenantId)
NOTE : This signature has changed to accommodate both entity mode and multi-tenancy, both of which relate to
the Session to which this key belongs. To help minimize the impact of these changes in the future, the
SessionImplementor.generateEntityKey(java.io.Serializable, org.hibernate.persister.entity.EntityPersister)
method was added to hide the session-specific changes.
id
- The entity idpersister
- The entity persistertenantId
- The tenant identifier of the session to which this key belongspublic boolean isBatchLoadable()
public java.io.Serializable getIdentifier()
public java.lang.String getEntityName()
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(java.io.ObjectOutputStream oos) throws java.io.IOException
oos
- The stream to which we should write the serial data.java.io.IOException
- Thrown by Java I/Opublic static EntityKey deserialize(java.io.ObjectInputStream ois, SessionImplementor session) throws java.io.IOException, java.lang.ClassNotFoundException
ois
- The stream from which to read the entry.session
- The session being deserialized.java.io.IOException
- Thrown by Java I/Ojava.lang.ClassNotFoundException
- Thrown by Java I/OCopyright © 2001-2012 Red Hat, Inc. All Rights Reserved.