|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QuerySpecificationBuilder
This builder builds a single SELECT query. It acts as an aggregator for ColumnsBuilder for columns in
SELECT, FromBuilder for tables in FROM clause, BooleanBuilder for search condition in
WHERE clause, GroupByBuilder for GROUP BY clause, another BooleanBuilder for grouping
conditions in HAVING clause, and finally OrderByBuilder for ORDER BY clause.
QuerySpecification| Method Summary | |
|---|---|
FromBuilder |
getFrom()
Gets the builder for FROM clause of this SELECT statement. |
GroupByBuilder |
getGroupBy()
Gets the builder for GROUP BY clause of this SELECT statement. |
BooleanBuilder |
getHaving()
Gets the builder for grouping condition in HAVING clause of this SELECT statement. |
OrderByBuilder |
getOrderBy()
Gets the builder for ORDER BY clause of this SELECT statement. |
ColumnsBuilder |
getSelect()
Gets the builder for columns in this SELECT statement. |
BooleanBuilder |
getWhere()
Gets the builder for search condition in WHERE clause of this SELECT statement. |
QuerySpecificationBuilder |
setFrom(FromBuilder builder)
Sets the builder for FROM clause of this SELECT statement. |
QuerySpecificationBuilder |
setGroupBy(GroupByBuilder builder)
Sets the builder for GROUP BY clause of this SELECT statement. |
QuerySpecificationBuilder |
setHaving(BooleanBuilder builder)
Sets the builder for grouping condition in HAVING clause of this SELECT statement. |
QuerySpecificationBuilder |
setOrderBy(OrderByBuilder builder)
Sets the builder for ORDER BY clause of this SELECT statement. |
QuerySpecificationBuilder |
setSelect(ColumnsBuilder builder)
Sets the builder for columns in SELECT statement. |
QuerySpecificationBuilder |
setWhere(BooleanBuilder builder)
Sets the builder for search condition in WHERE clause of this SELECT statement. |
QuerySpecificationBuilder |
trimGroupBy()
Checks that all selected columns are in GROUP BY clause. |
| Methods inherited from interface org.sql.generation.api.grammar.builders.AbstractBuilder |
|---|
createExpression |
| Method Detail |
|---|
ColumnsBuilder getSelect()
SELECT statement.
SELECT statement.FromBuilder getFrom()
FROM clause of this SELECT statement.
FROM clause of this SELECT statement.BooleanBuilder getWhere()
WHERE clause of this SELECT statement.
WHERE clause of this SELECT statement.GroupByBuilder getGroupBy()
GROUP BY clause of this SELECT statement.
GROUP BY clause of this SELECT statement.BooleanBuilder getHaving()
HAVING clause of this SELECT statement.
HAVING clause of this SELECT statement.OrderByBuilder getOrderBy()
ORDER BY clause of this SELECT statement.
ORDER BY clause of this SELECT statement.QuerySpecificationBuilder trimGroupBy()
GROUP BY clause. If they are not, it adds them as last columns of
GROUP BY clause.
QuerySpecificationBuilder setSelect(ColumnsBuilder builder)
SELECT statement.
QuerySpecificationBuilder setFrom(FromBuilder builder)
FROM clause of this SELECT statement.
QuerySpecificationBuilder setWhere(BooleanBuilder builder)
WHERE clause of this SELECT statement.
QuerySpecificationBuilder setGroupBy(GroupByBuilder builder)
GROUP BY clause of this SELECT statement.
QuerySpecificationBuilder setHaving(BooleanBuilder builder)
HAVING clause of this SELECT statement.
QuerySpecificationBuilder setOrderBy(OrderByBuilder builder)
ORDER BY clause of this SELECT statement.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||