public abstract class TransactionHelper extends Object
| Constructor and Description |
|---|
TransactionHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Serializable |
doWorkInCurrentTransaction(Connection conn,
String sql)
The work to be done
|
Serializable |
doWorkInNewTransaction(SessionImplementor session)
Suspend the current transaction and perform work in a new transaction
|
protected abstract Serializable doWorkInCurrentTransaction(Connection conn, String sql) throws SQLException
SQLExceptionpublic Serializable doWorkInNewTransaction(SessionImplementor session) throws HibernateException
HibernateExceptionCopyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved