org.axiondb
public interface AxionCommand
Version: $Revision: 1.15 $ $Date: 2005/12/22 09:02:30 $
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.
|
AxionResultSet | executeQuery(Database db)
Executes an SQL statement that returns a single read-only
java.sql.ResultSet object such as a SELECT statement.
|
AxionResultSet | executeQuery(Database db, boolean isReadOnly)
Execute an SQL statement that returns a single java.sql.ResultSet object
with the given read-only state.
|
int | 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. |
List | getBindVariables() |
int | getEffectedRowCount()
Returns the last row count generated by AxionCommand or AxionCommand. |
ResultSet | getResultSet()
Returns the last java.sql.ResultSet generated by AxionCommand or
AxionCommand. |
Parameters: index the one-based index of the variable value the value to bind the variable to
Returns: true if one or more java.sql.ResultSets were generated, false otherwise
See Also: java.sql.Statement#execute(java.lang.String) java.sql.PreparedStatement#execute
Returns: the generated java.sql.ResultSet
See Also: java.sql.Statement#executeQuery(java.lang.String) java.sql.PreparedStatement#executeQuery
Parameters: db Database in which query will be executed isReadOnly true if statement is read-only, false otherwise
Returns: the generated java.sql.ResultSet
Returns: the number of rows modified
See Also: java.sql.Statement#executeUpdate(java.lang.String) java.sql.PreparedStatement#executeUpdate