org.hibernate.engine.transaction

Class Isolater


public class Isolater
extends java.lang.Object

Class which provides the isolation semantics required by an IsolatedWork. Processing comes in two flavors:
Author:
Steve Ebersole

Nested Class Summary

static class
Isolater.JdbcDelegate
An isolation delegate for JDBC-based transactions.
static class
Isolater.JtaDelegate
An isolation delegate for JTA-based transactions.

Method Summary

static void
doIsolatedWork(IsolatedWork work, SessionImplementor session)
Ensures that all processing actually performed by the given work will occur on a seperate transaction.
static void
doNonTransactedWork(IsolatedWork work, SessionImplementor session)
Ensures that all processing actually performed by the given work will occur outside of a transaction.

Method Details

doIsolatedWork

public static void doIsolatedWork(IsolatedWork work,
                                  SessionImplementor session)
            throws HibernateException
Ensures that all processing actually performed by the given work will occur on a seperate transaction.
Parameters:
work - The work to be performed.
session - The session from which this request is originating.

doNonTransactedWork

public static void doNonTransactedWork(IsolatedWork work,
                                       SessionImplementor session)
            throws HibernateException
Ensures that all processing actually performed by the given work will occur outside of a transaction.
Parameters:
work - The work to be performed.
session - The session from which this request is originating.