-
- 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 BatchedRunnable
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 voidrun(Configuration configuration)Run statements.
-
-
-
Method Detail
-
run
void run(Configuration configuration) throws Throwable
Run statements.Implementations may freely use the argument
Configurationto run statements against the database.- Parameters:
configuration- The configuration configured with aBatchedConnection.- Throws:
Throwable- Any exception, includingSQLException, that will be propagated as an uncheckedDataAccessException.- See Also:
BatchedConnection for details.
-
-