Top Description Methods
org.hibernate.engine.transaction.spi

public Interface IsolationDelegate

Known Direct Implementers
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate, org.hibernate.resource.transaction.backend.jta.internal.JtaIsolationDelegate
Imports
org.hibernate.HibernateException, org.hibernate.jdbc.WorkExecutorVisitable, java.util.concurrent.Callable

Contract for performing work in a manner that isolates it from any current transaction.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public <T> T

Returns:

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

Invoke the given callable in isolation from current transaction.

public <T> T

Returns:

The work result
delegateWork
(WorkExecutorVisitable<T>
The work to be performed.
work
,
boolean
Should the work itself be done in a (isolated) transaction?
transacted
)

Perform the given work in isolation from current transaction.

Method Detail

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

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

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

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

Exceptions
HibernateException:
Indicates a problem performing the work.