org.hibernate.engine.transaction
Class Isolater
java.lang.Object
org.hibernate.engine.transaction.Isolater
public class Isolater
extends java.lang.Object
Class which provides the isolation semantics required by
an
IsolatedWork
. Processing comes in two flavors:
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.
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.
work
- The work to be performed.session
- The session from which this request is originating.