Top Description Methods
liquibase.executor.jvm

pack-priv Interface StatementCallback

Known Direct Implementers
liquibase.executor.jvm.JdbcExecutor.ExecuteStatementCallback, liquibase.executor.jvm.JdbcExecutor.QueryStatementCallback
Imports
liquibase.exception.DatabaseException, liquibase.statement.SqlStatement, java.sql.SQLException, .Statement

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.

Author
Spring Framework

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a result object, or null if none
doInStatement
(Statement
active JDBC Statement
stmt
)

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

public SqlStatement

Method Detail

doInStatementback to summary
public Object doInStatement(Statement stmt) throws SQLException, DatabaseException

Gets called by JdbcTemplate.execute with 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:Statement

active JDBC Statement

Returns:Object

a result object, or null if none

getStatementback to summary
public SqlStatement getStatement()