Package org.hibernate.engine
Class TransactionHelper
java.lang.Object
org.hibernate.engine.TransactionHelper
- Direct Known Subclasses:
MultipleHiLoPerTableGenerator,TableGenerator,TableGenerator,TableStructure
Allows work to be done outside the current transaction, by suspending it,
and performing work in a new transaction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract SerializabledoWorkInCurrentTransaction(Connection conn, String sql) The work to be donedoWorkInNewTransaction(SessionImplementor session) Suspend the current transaction and perform work in a new transaction
-
Constructor Details
-
TransactionHelper
public TransactionHelper()
-
-
Method Details
-
doWorkInCurrentTransaction
protected abstract Serializable doWorkInCurrentTransaction(Connection conn, String sql) throws SQLException The work to be done- Throws:
SQLException
-
doWorkInNewTransaction
Suspend the current transaction and perform work in a new transaction- Throws:
HibernateException
-