|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.axiondb.engine.commands.BaseAxionCommand
org.axiondb.engine.commands.SelectCommand
A SELECT query.
TODO: Support for GROUP BY ...HAVING
| Field Summary | |
protected AxionQueryContext |
_context
|
protected Database |
_currentDatabase
|
protected AxionQueryPlanner |
_planner
|
| Constructor Summary | |
SelectCommand(AxionQueryContext context)
|
|
| Method Summary | |
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. |
int |
executeUpdate(Database database)
Unsupported |
protected Iterator |
getBindVariableIterator()
Returns an Iteratorover all my BindVariables, in the proper
order. |
Map |
getColumnIdToFieldMap()
|
AxionQueryContext |
getQueryContext()
|
RowIterator |
makeRowIterator(Database db)
|
protected RowIterator |
makeRowIterator(Database db,
boolean refresh)
|
protected void |
resolve(Database db)
|
String |
toString()
|
| Methods inherited from class org.axiondb.engine.commands.BaseAxionCommand |
appendBindVariables, assertNotReadOnly, attemptToConvertValue, bind, clearBindings, getEffectedRowCount, getResultSet, getRowIterator, getRowIterator, getTableForIdentifier, resolveSelectableList, resolveSelectableList, setEffectedRowCount, setResultSet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected AxionQueryContext _context
protected Database _currentDatabase
protected AxionQueryPlanner _planner
| Constructor Detail |
public SelectCommand(AxionQueryContext context)
| Method Detail |
public boolean execute(Database database)
throws AxionException
AxionCommand
ResultSets
were generated, false otherwise
AxionExceptionStatement.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 int executeUpdate(Database database)
throws AxionException
AxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()public Map getColumnIdToFieldMap()
public AxionQueryContext getQueryContext()
public RowIterator makeRowIterator(Database db)
throws AxionException
AxionExceptionpublic String toString()
protected void buildTableList(Database db)
throws AxionException
AxionExceptionprotected Iterator getBindVariableIterator()
BaseAxionCommandIteratorover all my BindVariables, in the proper
order. Default impl returns empty iterator.
getBindVariableIterator in class BaseAxionCommand
protected RowIterator makeRowIterator(Database db,
boolean refresh)
throws AxionException
AxionException
protected void resolve(Database db)
throws AxionException
AxionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||