Top Description Methods
liquibase.executor.jvm

pack-priv Interface CallableStatementCallback

Known Direct Implementers
liquibase.executor.jvm.JdbcExecutor.QueryCallableStatementCallback
Imports
liquibase.exception.DatabaseException, liquibase.statement.SqlStatement, java.sql.CallableStatement, .SQLException

Generic callback interface for code that operates on a CallableStatement. Allows to execute any number of operations on a single CallableStatement, for example a single execute call or repeated execute calls with varying parameters.
Author
Spring Framework

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a result object, or null if none
doInCallableStatement
(CallableStatement
active JDBC CallableStatement
cs
)

Gets called by JdbcTemplate.execute with an active JDBC CallableStatement.

public SqlStatement

Method Detail

doInCallableStatementback to summary
public Object doInCallableStatement(CallableStatement cs) throws SQLException, DatabaseException

Gets called by JdbcTemplate.execute with an active JDBC CallableStatement. Does not need to care about closing the Statement or the Connection, or about handling transactions: this will all be handled by Spring's JdbcTemplate.

Parameters
cs:CallableStatement

active JDBC CallableStatement

Returns:Object

a result object, or null if none

Exceptions
SQLException:
if thrown by a JDBC method, to be auto-converted into a DataAccessException by a SQLExceptionTranslator
DatabaseException:
in case of custom exceptions
getStatementback to summary
public SqlStatement getStatement()