|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tapestry5.internal.hibernate.HibernateSessionManagerImpl
public class HibernateSessionManagerImpl
| Constructor Summary | |
|---|---|
HibernateSessionManagerImpl(HibernateSessionSource source)
|
|
| Method Summary | |
|---|---|
void |
abort()
Aborts the current transaction, and starts a new transaction to replace it. |
void |
commit()
Commits the current transaction (which will cause a flush of data to the database), then starts a new transaction to replace it. |
org.hibernate.Session |
getSession()
Gets the active session for this request, creating it as necessary. |
void |
threadDidCleanup()
Rollsback the transaction at the end of the request, then closes the session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HibernateSessionManagerImpl(HibernateSessionSource source)
| Method Detail |
|---|
public void abort()
HibernateSessionManager
abort in interface HibernateSessionManagerpublic void commit()
HibernateSessionManager
commit in interface HibernateSessionManagerpublic org.hibernate.Session getSession()
HibernateSessionManager
getSession in interface HibernateSessionManagerHibernateSessionSourcepublic void threadDidCleanup()
commit() after making any changes, if they
should persist.
threadDidCleanup in interface ThreadCleanupListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||