Class DefaultExecutionStrategy
- java.lang.Object
-
- migratedb.v1.core.internal.database.DefaultExecutionStrategy
-
- All Implemented Interfaces:
DatabaseExecutionStrategy
public class DefaultExecutionStrategy extends Object implements DatabaseExecutionStrategy
The default execution strategy for aSQLCallable, which performs a single execution.
-
-
Constructor Summary
Constructors Constructor Description DefaultExecutionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Texecute(SqlCallable<T> callable)Execute the given callable using the defined strategy.
-
-
-
Method Detail
-
execute
public <T> T execute(SqlCallable<T> callable) throws SQLException
Description copied from interface:DatabaseExecutionStrategyExecute the given callable using the defined strategy.- Specified by:
executein interfaceDatabaseExecutionStrategy- 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
-
-