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
SQLException
public Serializable doWorkInNewTransaction(SessionImplementor session) throws HibernateException
HibernateException
Copyright © 2002-2015 Red Hat Middleware, LLC. All Rights Reserved