- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
An operation that can run code and statements against a provided JDBC
Connection
.- Author:
- Lukas Eder
-
Method Summary
-
Method Details
-
run
Run statements.Implementations may freely use the argument
Connection
to run statements against the database. Implementations MUST manage the lifecycle of any resources created from thisconnection
, such asStatement
orResultSet
. Implementations MUST NOT manage the lifecycle of theConnection
, which is managed by theConnectionProvider
that provided theconnection
to thisConnectionRunnable
.- Parameters:
connection
- The connection.- Throws:
Throwable
- Any exception, includingSQLException
, that will be propagated as an uncheckedDataAccessException
.
-