Package org.hibernate.engine.transaction
Class Isolater
java.lang.Object
org.hibernate.engine.transaction.Isolater
Class which provides the isolation semantics required by
an
IsolatedWork. Processing comes in two flavors:doIsolatedWork(org.hibernate.engine.transaction.IsolatedWork, org.hibernate.engine.SessionImplementor): makes sure the work to be done is performed in a seperate, distinct transactiondoNonTransactedWork(org.hibernate.engine.transaction.IsolatedWork, org.hibernate.engine.SessionImplementor): makes sure the work to be done is performed outside the scope of any transaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn isolation delegate for JDBC-based transactions.static classAn isolation delegate for JTA-based transactions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoIsolatedWork(IsolatedWork work, SessionImplementor session) Ensures that all processing actually performed by the given work will occur on a seperate transaction.static voiddoNonTransactedWork(IsolatedWork work, SessionImplementor session) Ensures that all processing actually performed by the given work will occur outside of a transaction.
-
Constructor Details
-
Isolater
public Isolater()
-
-
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.- Throws:
HibernateException
-
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.- Throws:
HibernateException
-