org.tynamo.hibernate.v4
Class Hibernate4SessionManagerImpl
java.lang.Object
org.tynamo.hibernate.v4.Hibernate4SessionManagerImpl
- All Implemented Interfaces:
- EventListener, org.apache.tapestry5.hibernate.HibernateSessionManager, org.apache.tapestry5.ioc.services.ThreadCleanupListener
public class Hibernate4SessionManagerImpl
- extends Object
- implements org.apache.tapestry5.hibernate.HibernateSessionManager, org.apache.tapestry5.ioc.services.ThreadCleanupListener
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Hibernate4SessionManagerImpl
public Hibernate4SessionManagerImpl(org.apache.tapestry5.hibernate.HibernateSessionSource source)
abort
public void abort()
- Specified by:
abort in interface org.apache.tapestry5.hibernate.HibernateSessionManager
commit
public void commit()
- Specified by:
commit in interface org.apache.tapestry5.hibernate.HibernateSessionManager
getSession
public org.hibernate.Session getSession()
- Specified by:
getSession in interface org.apache.tapestry5.hibernate.HibernateSessionManager
threadDidCleanup
public void threadDidCleanup()
- Rollsback the transaction at the end of the request, then closes the session. This means that any uncommitted
changes are lost; code should inject the HSM and invoke
commit() after making any changes, if they
should persist.
- Specified by:
threadDidCleanup in interface org.apache.tapestry5.ioc.services.ThreadCleanupListener
Copyright © 2004-2013. All Rights Reserved.