Top Description Methods
org.jooq

public Interface ConnectionCallable<T>

Annotations
@FunctionalInterface
Imports
java.sql.Connection, .ResultSet, .SQLException, .Statement, org.jooq.exception.DataAccessException

An operation that can run code and statements against a provided JDBC Connection.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

The outcome of the callable.
run
(Connection
The connection.
connection
)

Run statements.

Method Detail

runback to summary
public T run(Connection connection) throws Throwable

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 this connection, such as Statement or ResultSet. Implementations MUST NOT manage the lifecycle of the Connection, which is managed by the ConnectionProvider that provided the connection to this ConnectionCallable.

Parameters
connection:Connection

The connection.

Returns:T

The outcome of the callable.

Exceptions
Throwable:
Any exception, including SQLException, that will be propagated as an unchecked DataAccessException.