Package liquibase.executor.jvm
Interface StatementCallback
public interface StatementCallback
Generic callback interface for code that operates on a JDBC Statement.
Allows to execute any number of operations on a single Statement,
for example a single
executeUpdate call or repeated
executeUpdate calls with varying SQL.
Used internally by JdbcTemplate, but also useful for application code.
-
Method Summary
Modifier and TypeMethodDescriptiondoInStatement(Statement stmt) Gets called byJdbcTemplate.executewith an active JDBC Statement.
-
Method Details
-
doInStatement
Gets called byJdbcTemplate.executewith an active JDBC Statement. Does not need to care about closing the Statement or the Connection, or about handling transactions: this will all be handled by JdbcTemplate.- Parameters:
stmt- active JDBC Statement- Returns:
- a result object, or
nullif none - Throws:
SQLExceptionDatabaseException
-
getStatement
SqlStatement getStatement()
-