public class Hibernate4SessionManagerImpl extends Object implements org.apache.tapestry5.hibernate.HibernateSessionManager, org.apache.tapestry5.ioc.services.ThreadCleanupListener
| Constructor and Description |
|---|
Hibernate4SessionManagerImpl(org.apache.tapestry5.hibernate.HibernateSessionSource source) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
void |
commit() |
org.hibernate.Session |
getSession() |
void |
threadDidCleanup()
Rollsback the transaction at the end of the request, then closes the session.
|
public Hibernate4SessionManagerImpl(org.apache.tapestry5.hibernate.HibernateSessionSource source)
public void abort()
abort in interface org.apache.tapestry5.hibernate.HibernateSessionManagerpublic void commit()
commit in interface org.apache.tapestry5.hibernate.HibernateSessionManagerpublic org.hibernate.Session getSession()
getSession in interface org.apache.tapestry5.hibernate.HibernateSessionManagerpublic void threadDidCleanup()
commit() after making any changes, if they
should persist.threadDidCleanup in interface org.apache.tapestry5.ioc.services.ThreadCleanupListenerCopyright © 2004-2013. All Rights Reserved.