A command to be executed against a
Database .
version: $Revision: 1.15 $ $Date: 2005/12/22 09:02:30 $ author: Chuck Burdick author: Ahimanikya Satapathy
Method Summary
void
bindAll(Object[] values) Sets the values of the all bind variable within this command.
void
clearBindings() Clears all bind variables within this command.
boolean
execute(Database db) Executes an SQL statement that may return multiple results.
executeUpdate(Database db) Executes an SQL that may add, delete or modify zero or more rows within the
database, such as an INSERT, UPDATE or DELETE statement.
Sets the values of the all bind variable within this command.
Parameters: index - the one-based index of the variable Parameters: value - the value to bind the variable to
Execute an SQL statement that returns a single
java.sql.ResultSet object
with the given read-only state.
Parameters: db - Database in which query will be executed Parameters: isReadOnly - true if statement is read-only, false otherwise the generated java.sql.ResultSet
Executes an SQL that may add, delete or modify zero or more rows within the
database, such as an INSERT, UPDATE or DELETE statement. In addition, SQL
statements that return nothing, such as SQL DDL statements, can be executed via
this method.
the number of rows modified See Also:java.sql.Statement.executeUpdate(java.lang.String) See Also:java.sql.PreparedStatement.executeUpdate