Package org.hibernate.engine.spi
Class CollectionKey
java.lang.Object
org.hibernate.engine.spi.CollectionKey
- All Implemented Interfaces:
Serializable
Uniquely identifies a collection instance in a particular session.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CollectionKey
deserialize
(ObjectInputStream ois, SessionImplementor session) Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.boolean
getKey()
getRole()
int
hashCode()
void
Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.toString()
-
Constructor Details
-
CollectionKey
-
-
Method Details
-
getRole
-
getKey
-
toString
-
equals
-
hashCode
public int hashCode() -
serialize
Custom serialization routine used during serialization of a Session/PersistenceContext for increased performance.- Parameters:
oos
- The stream to which we should write the serial data.- Throws:
IOException
-
deserialize
public static CollectionKey deserialize(ObjectInputStream ois, SessionImplementor session) throws IOException, ClassNotFoundException Custom deserialization routine used during deserialization of a Session/PersistenceContext for increased performance.- Parameters:
ois
- The stream from which to read the entry.session
- The session being deserialized.- Returns:
- The deserialized CollectionKey
- Throws:
IOException
ClassNotFoundException
-