public final class CollectionKey extends Object implements Serializable
| Constructor and Description |
|---|
CollectionKey(CollectionPersister persister,
Serializable key) |
CollectionKey(CollectionPersister persister,
Serializable key,
EntityMode em) |
| Modifier and Type | Method and Description |
|---|---|
static CollectionKey |
deserialize(ObjectInputStream ois,
SessionImplementor session)
Custom deserialization routine used during deserialization of a
Session/PersistenceContext for increased performance.
|
boolean |
equals(Object other) |
int |
generateHashCode() |
Serializable |
getKey() |
String |
getRole() |
int |
hashCode() |
void |
serialize(ObjectOutputStream oos)
Custom serialization routine used during serialization of a
Session/PersistenceContext for increased performance.
|
String |
toString() |
public CollectionKey(CollectionPersister persister, Serializable key)
public CollectionKey(CollectionPersister persister, Serializable key, EntityMode em)
public int generateHashCode()
public String getRole()
public Serializable getKey()
public void serialize(ObjectOutputStream oos) throws IOException
oos - The stream to which we should write the serial data.IOExceptionpublic static CollectionKey deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException
ois - The stream from which to read the entry.session - The session being deserialized.IOExceptionClassNotFoundExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.