public interface AxionCommand
Database.| Modifier and Type | Method and Description |
|---|---|
void |
bindAll(java.lang.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
ResultSet object such as a SELECT statement. |
AxionResultSet |
executeQuery(Database db,
boolean isReadOnly)
Execute an SQL statement that returns a single
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.
|
java.util.List |
getBindVariables() |
int |
getEffectedRowCount()
Returns the last row count generated by
execute(org.axiondb.Database) or executeUpdate(org.axiondb.Database). |
java.sql.ResultSet |
getResultSet()
Returns the last
ResultSet generated by execute(org.axiondb.Database) or
executeQuery(org.axiondb.Database). |
void bindAll(java.lang.Object[] values)
throws AxionException
index - the one-based index of the variablevalue - the value to bind the variable toAxionExceptionvoid clearBindings()
throws AxionException
AxionExceptionboolean execute(Database db) throws AxionException
ResultSets were generated,
false otherwiseAxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()AxionResultSet executeQuery(Database db) throws AxionException
ResultSet object such as a SELECT statement.ResultSetAxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()AxionResultSet executeQuery(Database db, boolean isReadOnly) throws AxionException
ResultSet object
with the given read-only state.db - Database in which query will be executedisReadOnly - true if statement is read-only, false otherwiseResultSetAxionExceptionint executeUpdate(Database db) throws AxionException
AxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()java.util.List getBindVariables()
int getEffectedRowCount()
execute(org.axiondb.Database) or executeUpdate(org.axiondb.Database).java.sql.ResultSet getResultSet()
ResultSet generated by execute(org.axiondb.Database) or
executeQuery(org.axiondb.Database).