public class EntityUniqueKey
extends java.lang.Object
implements java.io.Serializable
EntityKey
,
Serialized FormConstructor and Description |
---|
EntityUniqueKey(java.lang.String entityName,
java.lang.String uniqueKeyName,
java.lang.Object semiResolvedKey,
Type keyType,
EntityMode entityMode,
SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
static EntityUniqueKey |
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) |
int |
generateHashCode(SessionFactoryImplementor factory) |
java.lang.String |
getEntityName() |
java.lang.Object |
getKey() |
java.lang.String |
getUniqueKeyName() |
int |
hashCode() |
void |
serialize(java.io.ObjectOutputStream oos)
Custom serialization routine used during serialization of a
Session/PersistenceContext for increased performance.
|
java.lang.String |
toString() |
public EntityUniqueKey(java.lang.String entityName, java.lang.String uniqueKeyName, java.lang.Object semiResolvedKey, Type keyType, EntityMode entityMode, SessionFactoryImplementor factory)
public java.lang.String getEntityName()
public java.lang.Object getKey()
public java.lang.String getUniqueKeyName()
public int generateHashCode(SessionFactoryImplementor factory)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
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
public static EntityUniqueKey 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
java.lang.ClassNotFoundException
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.