org.hibernate.engine
Class CollectionKey

java.lang.Object
  extended by org.hibernate.engine.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.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
CollectionKey(CollectionPersister persister, java.io.Serializable key, EntityMode em)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 int generateHashCode()
           
 java.io.Serializable getKey()
           
 java.lang.String getRole()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionKey

public CollectionKey(CollectionPersister persister,
                     java.io.Serializable key,
                     EntityMode em)
Method Detail

equals

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

generateHashCode

public int generateHashCode()

hashCode

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

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


Copyright © 2008 Hibernate.org. All Rights Reserved.