Top Fields Constructors Methods
org.hibernate.resource.transaction.backend.jdbc.internal

public Class JdbcIsolationDelegate

extends Object
implements IsolationDelegate
Class Inheritance
All Implemented Interfaces
org.hibernate.resource.transaction.spi.IsolationDelegate
Imports
java.sql.Connection, .SQLException, java.util.concurrent.Callable, org.hibernate.HibernateException, org.hibernate.engine.jdbc.connections.spi.JdbcConnectionAccess, org.hibernate.engine.jdbc.spi.SqlExceptionHelper, org.hibernate.resource.jdbc.spi.JdbcSessionOwner, org.hibernate.resource.transaction.spi.IsolationDelegate, .TransactionCoordinatorOwner, org.hibernate.internal.CoreLogging, .CoreMessageLogger, org.hibernate.jdbc.WorkExecutor, .WorkExecutorVisitable

Author
Andrea Boriero

Field Summary

Modifier and TypeField and Description
private final JdbcConnectionAccess
private static final CoreMessageLogger
private final SqlExceptionHelper

Constructor Summary

AccessConstructor and Description
public
public
public
JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper)

Method Summary

Modifier and TypeMethod and Description
public <T> T
delegateCallable(Callable<T>
The callable to be invoked.
callable
,
boolean
Should the work itself be done in a (isolated) transaction?
transacted
)

Implements org.hibernate.resource.transaction.spi.IsolationDelegate.delegateCallable.

Invoke the given callable in isolation from current transaction.
public <T> T
delegateWork(WorkExecutorVisitable<T>
The work to be performed.
work
,
boolean
Should the work itself be done in a (isolated) transaction?
transacted
)

Implements org.hibernate.resource.transaction.spi.IsolationDelegate.delegateWork.

Perform the given work in isolation from current transaction.
protected JdbcConnectionAccess
protected SqlExceptionHelper
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionAccessback to summary
private final JdbcConnectionAccess connectionAccess
LOGback to summary
private static final CoreMessageLogger LOG
sqlExceptionHelperback to summary
private final SqlExceptionHelper sqlExceptionHelper

Constructor Detail

JdbcIsolationDelegateback to summary
public JdbcIsolationDelegate(TransactionCoordinatorOwner transactionCoordinatorOwner)
JdbcIsolationDelegateback to summary
public JdbcIsolationDelegate(JdbcSessionOwner jdbcSessionOwner)
JdbcIsolationDelegateback to summary
public JdbcIsolationDelegate(JdbcConnectionAccess connectionAccess, SqlExceptionHelper sqlExceptionHelper)

Method Detail

delegateCallableback to summary
public <T> T delegateCallable(Callable<T> callable, boolean transacted) throws HibernateException

Implements org.hibernate.resource.transaction.spi.IsolationDelegate.delegateCallable.

Doc from org.hibernate.resource.transaction.spi.IsolationDelegate.delegateCallable.

Invoke the given callable in isolation from current transaction.

Parameters
callable:Callable<T>

The callable to be invoked.

transacted:boolean

Should the work itself be done in a (isolated) transaction?

Returns:T

The work result

Annotations
@Override
Exceptions
HibernateException:
Indicates a problem performing the work.
delegateWorkback to summary
public <T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException

Implements org.hibernate.resource.transaction.spi.IsolationDelegate.delegateWork.

Doc from org.hibernate.resource.transaction.spi.IsolationDelegate.delegateWork.

Perform the given work in isolation from current transaction.

Parameters
work:WorkExecutorVisitable<T>

The work to be performed.

transacted:boolean

Should the work itself be done in a (isolated) transaction?

Returns:T

The work result

Annotations
@Override
Exceptions
HibernateException:
Indicates a problem performing the work.
jdbcConnectionAccessback to summary
protected JdbcConnectionAccess jdbcConnectionAccess()
sqlExceptionHelperback to summary
protected SqlExceptionHelper sqlExceptionHelper()