public class Isolater extends Object
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 transactionModifier and Type | Class and Description |
---|---|
static class |
Isolater.JdbcDelegate
An isolation delegate for JDBC-based transactions.
|
static class |
Isolater.JtaDelegate
An isolation delegate for JTA-based transactions.
|
Constructor and Description |
---|
Isolater() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void doIsolatedWork(IsolatedWork work, SessionImplementor session) throws HibernateException
work
- The work to be performed.session
- The session from which this request is originating.HibernateException
public static void doNonTransactedWork(IsolatedWork work, SessionImplementor session) throws HibernateException
work
- The work to be performed.session
- The session from which this request is originating.HibernateException
Copyright © 2002-2017 Red Hat Middleware, LLC. All Rights Reserved