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()
HibernateSessionManager
abort
in interface HibernateSessionManager
public void commit()
HibernateSessionManager
commit
in interface HibernateSessionManager
public org.hibernate.Session getSession()
HibernateSessionManager
getSession
in interface HibernateSessionManager
HibernateSessionSource
public void threadDidCleanup()
commit()
after making any changes, if they
should persist.threadDidCleanup
in interface ThreadCleanupListener
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.