|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A command to be executed against a Database.
| Method Summary | |
void |
bind(int index,
Object value)
Sets the value of the ith 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 ResultSet object such as
a SELECT statement. |
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. |
int |
getEffectedRowCount()
Returns the last row count generated by execute(org.axiondb.Database) or executeUpdate(org.axiondb.Database). |
ResultSet |
getResultSet()
Returns the last ResultSet generated by
execute(org.axiondb.Database) or executeQuery(org.axiondb.Database). |
| Method Detail |
public void bind(int index,
Object value)
throws AxionException
index - the one-based index of the variablevalue - the value to bind the variable to
AxionException
public void clearBindings()
throws AxionException
AxionException
public boolean execute(Database db)
throws AxionException
ResultSets
were generated, false otherwise
AxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()
public AxionResultSet executeQuery(Database db)
throws AxionException
ResultSet object such as
a SELECT statement.
ResultSet
AxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()
public int executeUpdate(Database db)
throws AxionException
AxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()public int getEffectedRowCount()
execute(org.axiondb.Database) or executeUpdate(org.axiondb.Database).
public 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 | ||||||||||