public class HibernateSessionManagerImpl extends Object implements HibernateSessionManager, ThreadCleanupListener
| Constructor and Description |
|---|
HibernateSessionManagerImpl(HibernateSessionSource source) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public HibernateSessionManagerImpl(HibernateSessionSource source)
public void abort()
HibernateSessionManagerabort in interface HibernateSessionManagerpublic void commit()
HibernateSessionManagercommit in interface HibernateSessionManagerpublic org.hibernate.Session getSession()
HibernateSessionManagergetSession in interface HibernateSessionManagerHibernateSessionSourcepublic void threadDidCleanup()
commit() after making any changes, if they
should persist.threadDidCleanup in interface ThreadCleanupListener5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.