public class EntityUniqueKey extends Object implements Serializable
EntityKey
,
Serialized FormConstructor and Description |
---|
EntityUniqueKey(String entityName,
String uniqueKeyName,
Object semiResolvedKey,
Type keyType,
EntityMode entityMode,
SessionFactoryImplementor factory) |
Modifier and Type | Method and Description |
---|---|
static EntityUniqueKey |
deserialize(ObjectInputStream ois,
SessionImplementor session)
Custom deserialization routine used during deserialization of a
Session/PersistenceContext for increased performance.
|
boolean |
equals(Object other) |
int |
generateHashCode(SessionFactoryImplementor factory) |
String |
getEntityName() |
Object |
getKey() |
String |
getUniqueKeyName() |
int |
hashCode() |
void |
serialize(ObjectOutputStream oos)
Custom serialization routine used during serialization of a
Session/PersistenceContext for increased performance.
|
String |
toString() |
public EntityUniqueKey(String entityName, String uniqueKeyName, Object semiResolvedKey, Type keyType, EntityMode entityMode, SessionFactoryImplementor factory)
public String getEntityName()
public Object getKey()
public String getUniqueKeyName()
public int generateHashCode(SessionFactoryImplementor factory)
public void serialize(ObjectOutputStream oos) throws IOException
oos
- The stream to which we should write the serial data.IOException
public static EntityUniqueKey deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException
ois
- The stream from which to read the entry.session
- The session being deserialized.IOException
ClassNotFoundException
Copyright © 2018 JBoss by Red Hat. All rights reserved.