|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbutler.sql.query.Query
butler.sql.query.AggregateQuery
Query using aggregate functions.
| Nested Class Summary | |
static class |
AggregateQuery.AggregateQueryInstance
Returns the resulting select SQL statement. |
static class |
AggregateQuery.AggregateRecordList
|
| Nested classes inherited from class butler.sql.query.Query |
Query.SQLBuilder |
| Field Summary |
| Fields inherited from class butler.sql.query.Query |
_cols, _comparator, _filter, _table, _uniqueSort |
| Constructor Summary | |
AggregateQuery(Table tab)
|
|
| Method Summary | |
void |
addColumn(Column col)
Adds a column to retrieve. |
void |
addColumn(Column col,
AggregateFunction func)
|
void |
addFunction(AggregateFunction func)
|
void |
addSortCriteria(Column col,
boolean ascending)
Add sort-critera (order by) to query. |
void |
addSortCriteria(Index index,
boolean ascending)
Add sort-critera (order by) to query. |
QueryInstance |
createInstance()
Creates a instance of this query. |
java.util.List |
getFunctions(Column col)
|
java.util.List |
getJoins()
Returns the joins for this query. |
Join |
join(ForeignKey fk)
Joins another table to this query by a given foreign key. |
Join |
join(Table table)
Joins another table to this query by a given table. |
Join |
outerJoin(ForeignKey fk)
Joins another table to this query by a given foreign key, using left outer join. |
| Methods inherited from class butler.sql.query.Query |
addColumn, addFunctionColumn, addSortCriteria, addSortCriteria, addSubQuery, checkPermission, createTableDictonary, getColumn, getColumns, getComparator, getFilter, getFilter, getFilterMap, getHaving, getJoinByAlias, getMainTable, getMaxNoOfRecords, getName, getPhysicalColumns, getSortCriterias, getSQL, getSubQueries, getTable, getUnions, isNested, isUnion, isUniqueSort, join, join, newIterator, outerJoin, outerJoin, parse, parse, parseQuery, recursiveJoin, registerFilter, registerJoin, replaceFilter, run, setAggregate, setDistinct, setFilter, setHaving, setMaxNoOfRecords, setName, setNested, setRecordComparator, setSortCriterias, setUnion, setUniqueSort, toXML, toXML, union |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AggregateQuery(Table tab)
throws java.lang.Exception
| Method Detail |
public void addColumn(Column col)
Query
addColumn in class Query
public void addColumn(Column col,
AggregateFunction func)
public void addFunction(AggregateFunction func)
public java.util.List getFunctions(Column col)
public Join join(ForeignKey fk)
throws java.lang.Exception
Query
join in class Queryjava.lang.Exception
public Join outerJoin(ForeignKey fk)
throws java.lang.Exception
Query
outerJoin in class Queryjava.lang.Exception
public Join join(Table table)
throws java.lang.Exception
Query
join in class Queryjava.lang.Exceptionpublic java.util.List getJoins()
Query
getJoins in class Query
public void addSortCriteria(Column col,
boolean ascending)
throws java.lang.Exception
Query
addSortCriteria in class Queryjava.lang.Exception
public void addSortCriteria(Index index,
boolean ascending)
throws java.lang.Exception
Query
addSortCriteria in class Queryjava.lang.Exceptionpublic QueryInstance createInstance()
Query
createInstance in class Query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||