All Downloads are FREE. Search and download functionalities are using the official Maven repository.

liquibase.executor.jvm.PreparedStatementCallback Maven / Gradle / Ivy

There is a newer version: 4.30.0
Show newest version
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); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy