liquibase.database.template.PreparedStatementCallback Interface Reference

List of all members.


Detailed Description

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

Definition at line 15 of file PreparedStatementCallback.java.


Package Functions

Object doInPreparedStatement (PreparedStatement ps)
 Gets called by JdbcTemplate.execute with an active JDBC PreparedStatement.

Member Function Documentation

Object liquibase.database.template.PreparedStatementCallback.doInPreparedStatement ( PreparedStatement  ps  )  [package]

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.

Parameters:
ps active JDBC PreparedStatement
Returns:
a result object, or null if none
Exceptions:
java.sql.SQLException if thrown by a JDBC method, to be auto-converted to a DataAccessException by a SQLExceptionTranslator
JDBCException in case of custom exceptions


The documentation for this interface was generated from the following file:

doxygen