Top Description Constructors Methods
org.hibernate.engine

public abstract Class TransactionHelper

extends Object
Class Inheritance
Known Direct Subclasses
org.hibernate.id.MultipleHiLoPerTableGenerator, org.hibernate.id.TableGenerator, org.hibernate.id.enhanced.TableGenerator, org.hibernate.id.enhanced.TableStructure
Imports
java.io.Serializable, java.sql.Connection, .SQLException, org.hibernate.HibernateException, org.hibernate.engine.transaction.IsolatedWork, .Isolater, org.hibernate.exception.JDBCExceptionHelper

Allows work to be done outside the current transaction, by suspending it, and performing work in a new transaction
Author
Emmanuel Bernard

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected abstract Serializable
doWorkInCurrentTransaction(Connection conn, String sql)

The work to be done

public Serializable
doWorkInNewTransaction(final SessionImplementor session)

Suspend the current transaction and perform work in a new transaction

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

TransactionHelperback to summary
public TransactionHelper()

Method Detail

doWorkInCurrentTransactionback to summary
protected abstract Serializable doWorkInCurrentTransaction(Connection conn, String sql) throws SQLException

The work to be done

doWorkInNewTransactionback to summary
public Serializable doWorkInNewTransaction(final SessionImplementor session) throws HibernateException

Suspend the current transaction and perform work in a new transaction