-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface BatchedCallable<T>
An operation that can run code and statements, buffering all consecutive and identical SQL strings in aBatchedPreparedStatement, delaying their execution.- Author:
- Lukas Eder
- See Also:
BatchedConnection for details.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Trun(Configuration configuration)Run statements.
-
-
-
Method Detail
-
run
T run(Configuration configuration) throws Throwable
Run statements.Implementations may freely use the argument
Configurationto run statements against the database. All statements are executed on aBatchedConnection.- Parameters:
configuration- The configuration configured with aBatchedConnection.- Returns:
- The outcome of the callable.
- Throws:
Throwable- Any exception, includingSQLException, that will be propagated as an uncheckedDataAccessException.- See Also:
BatchedConnection for details.
-
-