|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.engine.commands.BaseAxionCommand
Abstract base AxionCommandimplementation.
| Constructor Summary | |
BaseAxionCommand()
|
|
| Method Summary | |
static void |
appendBindVariables(Selectable sel,
List list)
|
protected void |
assertNotReadOnly(Database db)
Throws an AxionExceptionif the given Databaseis read-only. |
protected Object |
attemptToConvertValue(Object val,
DataType type,
ColumnIdentifier colid)
|
void |
bind(int index,
Object value)
Sets the value of the i th bind variable within this command. |
void |
clearBindings()
Clears all bind variables within this command. |
protected Iterator |
getBindVariableIterator()
Returns an Iteratorover all my BindVariables, in the proper
order. |
int |
getEffectedRowCount()
Returns the last row count generated by AxionCommand.execute(org.axiondb.Database) or AxionCommand.executeUpdate(org.axiondb.Database). |
ResultSet |
getResultSet()
Returns the last ResultSet generated by
AxionCommand.execute(org.axiondb.Database) or AxionCommand.executeQuery(org.axiondb.Database). |
protected RowIterator |
getRowIterator(Table table,
Selectable whereNode,
boolean readOnly)
|
protected RowIterator |
getRowIterator(Table table,
Selectable whereNode,
boolean readOnly,
RowDecorator dec)
|
protected Table |
getTableForIdentifier(Database db,
TableIdentifier identifier)
|
protected void |
resolveSelectableList(List list,
Database db,
TableIdentifier table)
|
protected void |
resolveSelectableList(List list,
Database db,
TableIdentifier[] tables)
|
protected void |
setEffectedRowCount(int count)
If sublasses return a number of rows effected, then upon execution, they should set that number here so it can support AxionCommand.execute(org.axiondb.Database) |
protected void |
setResultSet(ResultSet rset)
If subclasses create a AxionResultSetupon execution, they
should set it here so that they can support AxionCommand.execute(org.axiondb.Database). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.axiondb.AxionCommand |
execute, executeQuery, executeUpdate |
| Constructor Detail |
public BaseAxionCommand()
| Method Detail |
protected void setResultSet(ResultSet rset)
AxionResultSetupon execution, they
should set it here so that they can support AxionCommand.execute(org.axiondb.Database).
getResultSet()public ResultSet getResultSet()
AxionCommandResultSet generated by
AxionCommand.execute(org.axiondb.Database) or AxionCommand.executeQuery(org.axiondb.Database).
getResultSet in interface AxionCommandprotected void setEffectedRowCount(int count)
AxionCommand.execute(org.axiondb.Database)
public int getEffectedRowCount()
AxionCommandAxionCommand.execute(org.axiondb.Database) or AxionCommand.executeUpdate(org.axiondb.Database).
getEffectedRowCount in interface AxionCommand
public void bind(int index,
Object value)
throws AxionException
bind in interface AxionCommandindex - the one-based index of the variablevalue - the value to bind the variable to
AxionException
public void clearBindings()
throws AxionException
clearBindings in interface AxionCommandAxionException
protected void assertNotReadOnly(Database db)
throws AxionException
AxionExceptionif the given Databaseis read-only.
AxionExceptionprotected Iterator getBindVariableIterator()
Iteratorover all my BindVariables, in the proper
order. Default impl returns empty iterator.
public static void appendBindVariables(Selectable sel,
List list)
protected Object attemptToConvertValue(Object val,
DataType type,
ColumnIdentifier colid)
throws AxionException
AxionException
protected RowIterator getRowIterator(Table table,
Selectable whereNode,
boolean readOnly)
throws AxionException
AxionException
protected RowIterator getRowIterator(Table table,
Selectable whereNode,
boolean readOnly,
RowDecorator dec)
throws AxionException
AxionException
protected Table getTableForIdentifier(Database db,
TableIdentifier identifier)
throws AxionException
AxionException
protected void resolveSelectableList(List list,
Database db,
TableIdentifier table)
throws AxionException
AxionException
protected void resolveSelectableList(List list,
Database db,
TableIdentifier[] tables)
throws AxionException
AxionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||