Interface DatabaseExecutionStrategy

All Known Implementing Classes:
CockroachDBRetryingStrategy, DefaultExecutionStrategy

public interface DatabaseExecutionStrategy
Defines a strategy for executing a SqlCallable against a particular database.
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    execute(SqlCallable<T> callable)
    Execute the given callable using the defined strategy.
  • Method Details

    • execute

      <T> T execute(SqlCallable<T> callable) throws SQLException
      Execute the given callable using the defined strategy.
      Type Parameters:
      T - The return type of the SQL callable.
      Parameters:
      callable - The SQL callable to execute.
      Returns:
      The object returned by the SQL callable.
      Throws:
      SQLException