Isolaterpublic class Isolater extends Object Class which provides the isolation semantics required by
an {@link IsolatedWork}. Processing comes in two flavors:
- {@link #doIsolatedWork} : makes sure the work to be done is
performed in a seperate, distinct transaction
- {@link #doNonTransactedWork} : makes sure the work to be
done is performed outside the scope of any transaction
|
Fields Summary |
---|
private static final Log | log |
Methods Summary |
---|
public static void | doIsolatedWork(IsolatedWork work, org.hibernate.engine.SessionImplementor session)Ensures that all processing actually performed by the given work will
occur on a seperate transaction.
boolean isJta = session.getFactory().getTransactionManager() != null;
if ( isJta ) {
new JtaDelegate( session ).delegateWork( work, true );
}
else {
new JdbcDelegate( session ).delegateWork( work, true );
}
| public static void | doNonTransactedWork(IsolatedWork work, org.hibernate.engine.SessionImplementor session)Ensures that all processing actually performed by the given work will
occur outside of a transaction.
boolean isJta = session.getFactory().getTransactionManager() != null;
if ( isJta ) {
new JtaDelegate( session ).delegateWork( work, false );
}
else {
new JdbcDelegate( session ).delegateWork( work, false );
}
|
|