public class SelectCommand extends BaseAxionCommand
| Modifier and Type | Field and Description |
|---|---|
protected AxionQueryContext |
_context |
protected Database |
_currentDatabase |
protected AxionQueryPlanner |
_planner |
| Constructor and Description |
|---|
SelectCommand(AxionQueryContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildBindVariables() |
protected void |
buildTableList(Database db) |
boolean |
execute(Database database)
Executes an SQL statement that may return multiple results.
|
AxionResultSet |
executeQuery(Database db)
Execute this command, returning a
ResultSet. |
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 database)
Unsupported
|
java.util.Map |
getColumnIdToFieldMap() |
AxionQueryContext |
getQueryContext() |
RowIterator |
makeRowIterator(Database db,
boolean isReadOnly) |
RowIterator |
makeRowIterator(Database db,
boolean isReadOnly,
boolean refresh) |
protected void |
resolve(Database db) |
java.lang.String |
toString() |
assertNotReadOnly, attemptToConvertValue, bindAll, clearBindings, createResolveSelectableVisitor, getBindVariableIterator, getBindVariableIterator, getBindVariables, getBindVariableVisitor, getColIdentifierList, getCommitSize, getEffectedRowCount, getResultSet, getRowIterator, makeRowDecorator, populateDefaultValues, populateSequenceColumns, resolveGeneratedColumns, resolveGeneratedColumns, resolveSelectable, resolveSelectable, resolveSelectableList, resolveSelectableList, setBindVariableVisitor, setDeferAllConstraintIfRequired, setEffectedRowCount, setResultSet, updateGeneratedValuesprotected AxionQueryContext _context
protected Database _currentDatabase
protected AxionQueryPlanner _planner
public SelectCommand(AxionQueryContext context)
public boolean execute(Database database) throws AxionException
AxionCommandResultSets were generated,
false otherwiseAxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()public AxionResultSet executeQuery(Database db) throws AxionException
ResultSet.ResultSetgenerated by this command.AxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()public AxionResultSet executeQuery(Database db, boolean isReadOnly) throws AxionException
AxionCommandResultSet object
with the given read-only state.executeQuery in interface AxionCommandexecuteQuery in class BaseAxionCommanddb - Database in which query will be executedisReadOnly - true if statement is read-only, false otherwiseResultSetAxionExceptionpublic int executeUpdate(Database database) throws AxionException
AxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()public java.util.Map getColumnIdToFieldMap()
public AxionQueryContext getQueryContext()
public java.lang.String toString()
toString in class java.lang.Objectprotected void buildTableList(Database db) throws AxionException
AxionExceptionprotected void buildBindVariables()
buildBindVariables in class BaseAxionCommandpublic RowIterator makeRowIterator(Database db, boolean isReadOnly) throws AxionException
AxionExceptionpublic RowIterator makeRowIterator(Database db, boolean isReadOnly, boolean refresh) throws AxionException
AxionExceptionprotected void resolve(Database db) throws AxionException
AxionException