Class JdbcIsolationDelegate

java.lang.Object
org.hibernate.resource.transaction.backend.jdbc.internal.JdbcIsolationDelegate
All Implemented Interfaces:
IsolationDelegate

public final class JdbcIsolationDelegate extends Object implements IsolationDelegate
  • Constructor Details

  • Method Details

    • delegateWork

      public <T> T delegateWork(WorkExecutorVisitable<T> work, boolean transacted) throws HibernateException
      Description copied from interface: IsolationDelegate
      Perform the given work in isolation from current transaction.
      Specified by:
      delegateWork in interface IsolationDelegate
      Parameters:
      work - The work to be performed.
      transacted - Should the work itself be done in a (isolated) transaction?
      Returns:
      The work result
      Throws:
      HibernateException - Indicates a problem performing the work.
    • delegateCallable

      public <T> T delegateCallable(Callable<T> callable, boolean transacted) throws HibernateException
      Description copied from interface: IsolationDelegate
      Invoke the given callable in isolation from current transaction.
      Specified by:
      delegateCallable in interface IsolationDelegate
      Parameters:
      callable - The callable to be invoked.
      transacted - Should the work itself be done in a (isolated) transaction?
      Returns:
      The work result
      Throws:
      HibernateException - Indicates a problem performing the work.