MultiStatement is a wrapper class for a callable Statement
obtained by a MultiConnection object.
The sole function of this class is to log the sql statement passed to it
using the MultiConnection that called it - all calls are then passed to
the Statement object passed to the constructor.
author: vpro author: Pierre van Rooden version: $Id: MultiStatement.java,v 1.20 2007/06/11 12:29:03 michiel Exp $
execute(String sql, int autoGeneratedKeys) Executes the given SQL statement, which may return multiple results, and signals the driver that
any auto-generated keys should be made available for retrieval.
public boolean
execute(String sql, int[] columnIndexes) Executes the given SQL statement, which may return multiple results, and signals the driver that
the auto-generated keys indicated in the given array should be made available for retrieval.
public boolean
execute(String sql, String[] columnNames) Executes the given SQL statement, which may return multiple results, and signals the driver that
the auto-generated keys indicated in the given array should be made available for retrieval.
executeUpdate(String sql, int autoGeneratedKeys) Executes the given SQL statement and signals the driver with the given flag about whether the
auto-generated keys produced by this Statement object should be made available for retrieval.
public int
executeUpdate(String sql, int[] columnIndexes) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in
the given array should be made available for retrieval.
public int
executeUpdate(String sql, String[] columnNames) Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array
should be made available for retrieval.
getMoreResults(int current) Moves to this Statement object's next result, deals with any current ResultSet object(s) according to
the instructions specified by the given flag, and returns true if the next result is a ResultSet object.
Executes the given SQL statement, which may return multiple results, and signals the driver that
any auto-generated keys should be made available for retrieval.
Parameters: sql - any SQL statement Parameters: autoGeneratedKeys - a flag indicating whether auto-generated keys should be made available for retrieval true if the first result is a ResultSet object; false if it is an update count or there are no results since: MMBase 1.5, JDBC 1.4
Executes the given SQL statement, which may return multiple results, and signals the driver that
the auto-generated keys indicated in the given array should be made available for retrieval.
Parameters: sql - any SQL statement Parameters: columnIndexes - an array of column indexes indicating the columns that should be returned from the inserted row true if the first result is a ResultSet object; false if it is an update count or there are no results since: MMBase 1.5, JDBC 1.4
Executes the given SQL statement, which may return multiple results, and signals the driver that
the auto-generated keys indicated in the given array should be made available for retrieval.
Parameters: sql - any SQL statement Parameters: columnNames - - an array of the names of the columns that should be returned from the inserted row true if the first result is a ResultSet object; false if it is an update count or there are no results since: MMBase 1.5, JDBC 1.4
Executes the given SQL statement and signals the driver with the given flag about whether the
auto-generated keys produced by this Statement object should be made available for retrieval.
Parameters: sql - must be an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing Parameters: autoGeneratedKeys - a flag indicating whether auto-generated keys should be made available for retrieval either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing since: MMBase 1.5, JDBC 1.4
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in
the given array should be made available for retrieval.
Parameters: sql - must be an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing Parameters: columnIndexes - an array of column indexes indicating the columns that should be returned from the inserted row either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing since: MMBase 1.5, JDBC 1.4
Executes the given SQL statement and signals the driver that the auto-generated keys indicated in the given array
should be made available for retrieval.
Parameters: sql - must be an SQL INSERT, UPDATE or DELETE statement or an SQL statement that returns nothing Parameters: columnNames - - an array of the names of the columns that should be returned from the inserted row either the row count for INSERT, UPDATE or DELETE statements, or 0 for SQL statements that return nothing since: MMBase 1.5, JDBC 1.4
Retrieves any auto-generated keys created as a result of executing this Statement object.
a ResultSet object containing the auto-generated key(s) generated by the execution of this Statement object since: MMBase 1.5, JDBC 1.4
Moves to this Statement object's next result, deals with any current ResultSet object(s) according to
the instructions specified by the given flag, and returns true if the next result is a ResultSet object.
Parameters: current - one of CLOSE_CURRENT_RESULT, KEEP_CURRENT_RESULT, or CLOSE_ALL_RESULTS true if the next result is a ResultSet object; false if it is an update count or there are no more results since: MMBase 1.5, JDBC 1.4
Retrieves the result set holdability for ResultSet objects generated by this Statement object.
either ResultSet.HOLD_CURSORS_OVER_COMMIT or ResultSet.CLOSE_CURSORS_AT_COMMIT since: MMBase 1.5, JDBC 1.4