|
|||||||||||
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 Iterator over all my BindVariable s, 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
ResultSet
s
were generated, false otherwise
AxionException
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
public AxionResultSet executeQuery(Database db) throws AxionException
ResultSet
.
ResultSet
generated by this command.
AxionException
Statement.executeQuery(java.lang.String)
,
PreparedStatement.executeQuery()
public int executeUpdate(Database database) throws AxionException
AxionException
Statement.executeUpdate(java.lang.String)
,
PreparedStatement.executeUpdate()
public Map getColumnIdToFieldMap()
public AxionQueryContext getQueryContext()
public RowIterator makeRowIterator(Database db) throws AxionException
AxionException
public String toString()
protected void buildTableList(Database db) throws AxionException
AxionException
protected Iterator getBindVariableIterator()
BaseAxionCommand
Iterator
over all my BindVariable
s, 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 |