liquibase.executor.jvm.PreparedStatementCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of liquibase-core Show documentation
Show all versions of liquibase-core Show documentation
Liquibase is a tool for managing and executing database changes.
package liquibase.executor.jvm;
import java.sql.PreparedStatement;
/**
* Generic callback interface for code that operates on a PreparedStatement.
* Allows to execute any number of operations on a single PreparedStatement,
* for example a single executeUpdate
call or repeated
* executeUpdate
calls with varying parameters.
*
* @author Spring Framework
*/
interface PreparedStatementCallback {
/**
* Gets called by JdbcTemplate.execute
with an active JDBC
* PreparedStatement. Does not need to care about closing the Statement
* or the Connection, or about handling transactions: this will all be
* handled by JdbcTemplate.
*
* @param ps active JDBC PreparedStatement
* @return a result object, or null
if none
*/
Object doInPreparedStatement(PreparedStatement ps);
}