Package org.axonframework.common.jdbc
Interface JdbcUtils.SqlFunction
- Enclosing class:
JdbcUtils
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Describes a function that creates a new
PreparedStatement ready to be executed.-
Method Summary
Modifier and TypeMethodDescriptionapply(Connection connection) Create a newPreparedStatementusing the givenconnection.
-
Method Details
-
apply
Create a newPreparedStatementusing the givenconnection.- Parameters:
connection- the connection that will be used to create the statement- Returns:
- a new statement ready for execution
- Throws:
SQLException- if the statement could not be created
-