org.objectweb.medor.query.rdb.lib
Class AggregateRdbQueryNode
- Cloneable, Cloneable, FilteredQueryTree, NestQueryNode, QueryLeaf, QueryNode, QueryTree, RdbQueryLeaf, TupleStructure
public class AggregateRdbQueryNode
This class represents a QueryLeaf which contains aggregate functions.
It is built on top of a RbdQueryLeaf.
Object | clone(Object clone, Map obj2clone)
|
DataStore | getDataStore()
|
Expression | getQueryFilter() - Redefines getQueryFilter using the filter of the subquery.
|
String | getSelectList(String selectList, ArrayList selectFields, boolean qualified)
|
String | getSqlRequest(ParameterOperand[] pos, ArrayList al, int rangeStartAt, int rangeSize)
|
String | getSqlRequest(ParameterOperand[] pos, int rangeStartAt, int rangeSize) - Builds and returns the SQL query as a String corresponding to the
current RdbExpQueryLeaf.
|
boolean | isSubquery()
|
void | setIsSubquery(boolean subquery)
|
addCalculatedField , addChild , addField , addPropagatedField , clone , getChildren , getFieldName , getQueryFilter , getTupleLoader , getType , isOuter , removeField , replace , setOuter , setQueryFilter , setTupleLoader , updateCalculatedField , updateChildren , updatePropagatedField |
query
protected String query
AggregateRdbQueryNode
public AggregateRdbQueryNode()
AggregateRdbQueryNode
public AggregateRdbQueryNode(QueryTreeField[] groupedFields,
String groupedFieldName,
QueryTreeField[] groupByFields,
BasicRdbExpQueryLeaf subQL,
DataStore ds,
String nodeName)
throws MedorException
Constructs a RDB QueryNode for an aggregation.
The SQL request (string) will be calculated.
ds
- is the DataStore associated to the QueryLeaf to be created
clone
public Object clone(Object clone,
Map obj2clone)
throws CloneNotSupportedException
- clone in interface Nest
getSqlRequest
public String getSqlRequest(ParameterOperand[] pos,
int rangeStartAt,
int rangeSize)
throws MedorException,
ExpressionException
Builds and returns the SQL query as a String corresponding to the
current RdbExpQueryLeaf.
The SQL query is computed using the aggregate fields and relies on
the child RdbQueryLeaf.
- getSqlRequest in interface RdbQueryLeaf
- the SQL query as a String.