|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AxionCommand
A command to be executed against a Database.
| Method Summary | |
|---|---|
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). |
| Method Detail |
|---|
void bindAll(java.lang.Object[] values)
throws AxionException
index - the one-based index of the variablevalue - the value to bind the variable to
AxionException
void clearBindings()
throws AxionException
AxionException
boolean execute(Database db)
throws AxionException
ResultSets were generated,
false otherwise
AxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()
AxionResultSet executeQuery(Database db)
throws AxionException
ResultSet object such as a SELECT statement.
ResultSet
AxionExceptionStatement.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 otherwise
ResultSet
AxionException
int 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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||