bucket.core.persistence.hibernate.schema
Class TransientHibernateHandle

java.lang.Object
  extended by bucket.core.persistence.hibernate.schema.TransientHibernateHandle
All Implemented Interfaces:
com.atlassian.bonnie.Handle, java.io.Serializable

public class TransientHibernateHandle
extends java.lang.Object
implements com.atlassian.bonnie.Handle

This handle implementation cannot be converted to a String. It is intended to be used in memory during long transactions to maintain large collections of persisten objects while using less memory.

See Also:
Serialized Form

Constructor Summary
TransientHibernateHandle(java.lang.Class clazz, java.lang.Object id)
           
TransientHibernateHandle(net.sf.hibernate.Session session, java.lang.Object object)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Object get(net.sf.hibernate.Session session)
           
 java.lang.Class getClazz()
           
 java.io.Serializable getId()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TransientHibernateHandle

public TransientHibernateHandle(java.lang.Class clazz,
                                java.lang.Object id)

TransientHibernateHandle

public TransientHibernateHandle(net.sf.hibernate.Session session,
                                java.lang.Object object)
Method Detail

equals

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

hashCode

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

getId

public java.io.Serializable getId()

getClazz

public java.lang.Class getClazz()

get

public java.lang.Object get(net.sf.hibernate.Session session)
                     throws net.sf.hibernate.HibernateException
Throws:
net.sf.hibernate.HibernateException

toString

public java.lang.String toString()
Specified by:
toString in interface com.atlassian.bonnie.Handle
Overrides:
toString in class java.lang.Object


Copyright © 2003-2010 Atlassian. All Rights Reserved.