public class SubSelectCommand extends SelectCommand implements Selectable
_context, _currentDatabase, _planner| Constructor and Description |
|---|
SubSelectCommand(AxionQueryContext context) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildTableList(Database db) |
java.lang.Object |
evaluate(RowDecorator row) |
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
|
java.lang.String |
getAlias() |
DataType |
getDataType() |
java.lang.String |
getLabel() |
java.lang.String |
getName() |
RowIterator |
getRowIterator(Database db)
Return RowIterator that can used for other commands for sub-query.
|
RowIterator |
getRowIterator(Database db,
RowDecorator rowDec) |
Table |
getTableView(Database db,
java.lang.String name)
Return TableView a table wrapper to hold sub-query RowIterator.
|
Table |
getTableView(Database db,
java.lang.String name,
boolean addToDb)
Return TableView a table wrapper to hold sub-query RowIterator.
|
boolean |
isCorrelated() |
boolean |
isScalarSelect() |
RowIterator |
makeRowIterator(Database db,
boolean readOnly) |
void |
setAlias(java.lang.String aliasName) |
void |
setDB(Database db) |
void |
setEvaluteAsScalarValue() |
void |
setParentTables(TableIdentifier[] tables) |
void |
setVariableContext(VariableContext context) |
buildBindVariables, executeQuery, getColumnIdToFieldMap, getQueryContext, makeRowIterator, resolve, toStringassertNotReadOnly, 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, updateGeneratedValuespublic SubSelectCommand(AxionQueryContext context)
public java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate in interface SelectableAxionExceptionpublic boolean execute(Database database) throws AxionException
AxionCommandexecute in interface AxionCommandexecute in class SelectCommandResultSets were generated,
false otherwiseAxionExceptionStatement.execute(java.lang.String),
PreparedStatement.execute()public AxionResultSet executeQuery(Database db) throws AxionException
SelectCommandResultSet.executeQuery in interface AxionCommandexecuteQuery in class SelectCommandResultSetgenerated by this command.AxionExceptionStatement.executeQuery(java.lang.String),
PreparedStatement.executeQuery()public int executeUpdate(Database database) throws AxionException
SelectCommandexecuteUpdate in interface AxionCommandexecuteUpdate in class SelectCommandAxionExceptionStatement.executeUpdate(java.lang.String),
PreparedStatement.executeUpdate()public java.lang.String getAlias()
getAlias in interface Selectablepublic DataType getDataType()
getDataType in interface Selectablepublic java.lang.String getLabel()
getLabel in interface Selectablepublic java.lang.String getName()
getName in interface Selectablepublic RowIterator getRowIterator(Database db) throws AxionException
RowIterator.AxionExceptionpublic RowIterator getRowIterator(Database db, RowDecorator rowDec) throws AxionException
AxionExceptionpublic Table getTableView(Database db, java.lang.String name) throws AxionException
TableView.AxionExceptionpublic Table getTableView(Database db, java.lang.String name, boolean addToDb) throws AxionException
TableView.AxionExceptionpublic boolean isScalarSelect()
public boolean isCorrelated()
public RowIterator makeRowIterator(Database db, boolean readOnly) throws AxionException
makeRowIterator in class SelectCommandAxionExceptionpublic void setAlias(java.lang.String aliasName)
public void setDB(Database db)
public void setEvaluteAsScalarValue()
public void setParentTables(TableIdentifier[] tables)
public void setVariableContext(VariableContext context)
setVariableContext in interface Selectableprotected void buildTableList(Database db) throws AxionException
buildTableList in class SelectCommandAxionException