|
||||||||||
| 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
org.axiondb.engine.commands.SubSelectCommand
public class SubSelectCommand
A Sub SELECT query used for view, scalar value, from node, row list
| Field Summary |
|---|
| Fields inherited from class org.axiondb.engine.commands.SelectCommand |
|---|
_context, _currentDatabase, _planner |
| Constructor Summary | |
|---|---|
SubSelectCommand(AxionQueryContext context)
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.axiondb.engine.commands.SelectCommand |
|---|
buildBindVariables, executeQuery, getColumnIdToFieldMap, getQueryContext, makeRowIterator, resolve, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SubSelectCommand(AxionQueryContext context)
| Method Detail |
|---|
public java.lang.Object evaluate(RowDecorator row)
throws AxionException
evaluate in interface SelectableAxionException
public boolean execute(Database database)
throws AxionException
AxionCommand
execute in interface AxionCommandexecute in class SelectCommandResultSets were generated,
false otherwise
AxionExceptionStatement.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
SelectCommand
executeUpdate 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 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.
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 Selectable
protected void buildTableList(Database db)
throws AxionException
buildTableList in class SelectCommandAxionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||