- 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 ConnectionRunnableAn operation that can run code and statements against a provided JDBC
- Lukas Eder
void run(Connection connection) throws ThrowableRun statements.
Implementations may freely use the argument
Connectionto run statements against the database. Implementations MUST manage the lifecycle of any resources created from this
connection, such as
ResultSet. Implementations MUST NOT manage the lifecycle of the
Connection, which is managed by the
ConnectionProviderthat provided the