|
||||||||||
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)
|
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 |
String |
getAlias()
|
DataType |
getDataType()
|
String |
getLabel()
|
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,
String name)
Return TableView a table wrapper to hold sub-query RowIterator. |
Table |
getTableView(Database db,
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(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 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 otherwise
AxionException
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 String getAlias()
getAlias
in interface Selectable
public DataType getDataType()
getDataType
in interface Selectable
public String getLabel()
getLabel
in interface Selectable
public 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, String name) throws AxionException
TableView
.
AxionException
public Table getTableView(Database db, 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(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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |