|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.axiondb.engine.commands.BaseAxionCommand
public abstract class BaseAxionCommand
Abstract base AxionCommand
implementation.
Constructor Summary | |
---|---|
BaseAxionCommand()
|
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 |
---|
public void bindAll(Object[] vals) throws AxionException
bindAll
in interface AxionCommand
index
- the one-based index of the variablevalue
- the value to bind the variable to
AxionException
public void clearBindings() throws AxionException
clearBindings
in interface AxionCommand
AxionException
public AxionResultSet executeQuery(Database db, boolean isReadOnly) throws AxionException
AxionCommand
ResultSet
object
with the given read-only state.
executeQuery
in interface AxionCommand
db
- Database in which query will be executedisReadOnly
- true if statement is read-only, false otherwise
ResultSet
AxionException
public List getBindVariables()
getBindVariables
in interface AxionCommand
public final int getEffectedRowCount()
AxionCommand
AxionCommand.execute(org.axiondb.Database)
or AxionCommand.executeUpdate(org.axiondb.Database)
.
getEffectedRowCount
in interface AxionCommand
public final ResultSet getResultSet()
AxionCommand
ResultSet
generated by AxionCommand.execute(org.axiondb.Database)
or
AxionCommand.executeQuery(org.axiondb.Database)
.
getResultSet
in interface AxionCommand
protected void assertNotReadOnly(Database db) throws AxionException
AxionException
if the given Database
is read-only.
AxionException
protected Object attemptToConvertValue(Object val, DataType type, ColumnIdentifier colid) throws AxionException
AxionException
protected void buildBindVariables()
protected final void createResolveSelectableVisitor(Database db)
protected Iterator getBindVariableIterator()
Iterator
over all my BindVariable
s, in the proper
order. Default impl returns empty iterator.
protected Iterator getBindVariableIterator(Selectable sel)
protected final FindBindVariableVisitor getBindVariableVisitor()
protected List getColIdentifierList(Table table, TableIdentifier tid) throws AxionException
AxionException
protected int getCommitSize(Database db)
protected RowIterator getRowIterator(Database db, TableIdentifier tid, Table table, Selectable whereNode, boolean readOnly, RowDecorator dec) throws AxionException
AxionException
protected final RowDecorator makeRowDecorator(Table table)
protected void populateDefaultValues(Database db, Table table, TableIdentifier tableId, RowDecorator dec) throws AxionException
AxionException
protected boolean populateSequenceColumns(Database db, Table table, Row row) throws AxionException
AxionException
protected void resolveGeneratedColumns(Table table, TableIdentifier tableId, List cols) throws AxionException
AxionException
protected void resolveGeneratedColumns(Table table, TableIdentifier tableId, List cols, boolean useDefaultValues) throws AxionException
AxionException
protected Selectable resolveSelectable(Selectable sel, Database db, List selected, TableIdentifier[] tables) throws AxionException
AxionException
protected Selectable resolveSelectable(Selectable sel, Database db, TableIdentifier[] tables) 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
protected final void setBindVariableVisitor(FindBindVariableVisitor visitor)
protected void setDeferAllConstraintIfRequired(Table table)
protected final void setEffectedRowCount(int count)
AxionCommand.execute(org.axiondb.Database)
protected final void setResultSet(ResultSet rset)
AxionResultSet
upon execution, they
should set it here so that they can support AxionCommand.execute(org.axiondb.Database)
.
getResultSet()
protected void updateGeneratedValues(Database db, Table table, TableIdentifier tableId, Row row) throws AxionException
AxionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |