public final class CollectionKey
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CollectionKey(CollectionPersister persister,
java.io.Serializable key) |
CollectionKey(CollectionPersister persister,
java.io.Serializable key,
EntityMode em) |
Modifier and Type | Method and Description |
---|---|
static CollectionKey |
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.io.Serializable |
getKey() |
java.lang.String |
getRole() |
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 CollectionKey(CollectionPersister persister, java.io.Serializable key)
public CollectionKey(CollectionPersister persister, java.io.Serializable key, EntityMode em)
public java.lang.String getRole()
public java.io.Serializable getKey()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
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 CollectionKey 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.