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, 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, updateGeneratedValues
public SubSelectCommand(AxionQueryContext context)
public java.lang.Object evaluate(RowDecorator row) throws AxionException
evaluate
in interface Selectable
AxionException
public boolean execute(Database database) throws AxionException
AxionCommand
execute
in interface AxionCommand
execute
in class SelectCommand
ResultSet
s were generated,
false otherwiseAxionException
Statement.execute(java.lang.String)
,
PreparedStatement.execute()
public AxionResultSet executeQuery(Database db) throws AxionException
SelectCommand
ResultSet
.executeQuery
in interface AxionCommand
executeQuery
in class SelectCommand
ResultSet
generated by this command.AxionException
Statement.executeQuery(java.lang.String)
,
PreparedStatement.executeQuery()
public int executeUpdate(Database database) throws AxionException
SelectCommand
executeUpdate
in interface AxionCommand
executeUpdate
in class SelectCommand
AxionException
Statement.executeUpdate(java.lang.String)
,
PreparedStatement.executeUpdate()
public java.lang.String getAlias()
getAlias
in interface Selectable
public DataType getDataType()
getDataType
in interface Selectable
public java.lang.String getLabel()
getLabel
in interface Selectable
public java.lang.String getName()
getName
in interface Selectable
public RowIterator getRowIterator(Database db) throws AxionException
RowIterator
.AxionException
public RowIterator getRowIterator(Database db, RowDecorator rowDec) throws AxionException
AxionException
public Table getTableView(Database db, java.lang.String name) throws AxionException
TableView
.AxionException
public Table getTableView(Database db, java.lang.String name, boolean addToDb) throws AxionException
TableView
.AxionException
public boolean isScalarSelect()
public boolean isCorrelated()
public RowIterator makeRowIterator(Database db, boolean readOnly) throws AxionException
makeRowIterator
in class SelectCommand
AxionException
public 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 Selectable
protected void buildTableList(Database db) throws AxionException
buildTableList
in class SelectCommand
AxionException