Class CollectionKey

  • All Implemented Interfaces:
    java.io.Serializable

    public final class CollectionKey
    extends java.lang.Object
    implements java.io.Serializable
    Uniquely identifies a collection instance in a particular session.
    See Also:
    Serialized Form
    • Method Detail

      • getRole

        public java.lang.String getRole()
      • getKey

        public java.io.Serializable getKey()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • serialize

        public void serialize​(java.io.ObjectOutputStream oos)
                       throws java.io.IOException
        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:
        java.io.IOException
      • deserialize

        public static CollectionKey deserialize​(java.io.ObjectInputStream ois,
                                                SessionImplementor session)
                                         throws java.io.IOException,
                                                java.lang.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:
        java.io.IOException
        java.lang.ClassNotFoundException