- Type Parameters:
T
- the type of the value returned by this executor.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Executes an SQL statement using a managed database connection.
-
Method Summary
Modifier and TypeMethodDescriptionexecuteSQL
(Connection connection) Executes an SQL statement using a managed database connection.
-
Method Details
-
executeSQL
Executes an SQL statement using a managed database connection.- Parameters:
connection
- the database connection.- Returns:
- the value computed by the SQL statement.
- Throws:
SQLException
- if an SQL error occurs.Exception
- if another error occurs.
-