|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.infodesire.infobit.hibernate.BaseSessionProvider
|
+--com.infodesire.infobit.hibernate.ThreadLocalSessionProvider
thread local session provider.
| Constructor Summary | |
ThreadLocalSessionProvider()
|
|
| Method Summary | |
net.sf.hibernate.Session |
getSession()
Gets the Session attribute of the DefaultSessionProvider object |
void |
returnCloseSession(net.sf.hibernate.Session sess)
give session back and close it |
void |
returnSession(net.sf.hibernate.Session sess)
give session back. |
void |
rollback()
rollback current transaction. |
| Methods inherited from class com.infodesire.infobit.hibernate.BaseSessionProvider |
init |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ThreadLocalSessionProvider()
| Method Detail |
public net.sf.hibernate.Session getSession()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException - Description of Exception
public void rollback()
throws net.sf.hibernate.HibernateException
net.sf.hibernate.HibernateException - Description of Exceptionpublic void returnSession(net.sf.hibernate.Session sess)
sess - session to be returned
public void returnCloseSession(net.sf.hibernate.Session sess)
throws net.sf.hibernate.HibernateException
sess - session to be closed
net.sf.hibernate.HibernateException - may be thrown by hibernate
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||