Interface ExecutionTemplate

All Known Implementing Classes:
CockroachRetryingTransactionalExecutionTemplate, PlainExecutionTemplate, TableLockingExecutionTemplate, TransactionalExecutionTemplate

public interface ExecutionTemplate
Spring-like template for executing operations in the context of a database connection.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    execute(Callable<T> callback)
    Executes this callback within the context of the connection
  • Method Details

    • execute

      <T> T execute(Callable<T> callback)
      Executes this callback within the context of the connection
      Parameters:
      callback - The callback to execute.
      Returns:
      The result of the callback.