|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PgSQLQuerySpecificationBuilder
Builder to build query specifications with extra elements that are added by PostgreSQL.
QuerySpecificationBuilder| Method Summary | |
|---|---|
PgSQLQuerySpecification |
createExpression()
Returns the expression which was being built by this builder. |
PgSQLQuerySpecificationBuilder |
limit(LimitClause limit)
Sets the LIMIT value of this SELECT statement |
PgSQLQuerySpecificationBuilder |
offset(OffsetClause offset)
Sets the OFFSET value of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
setFrom(FromBuilder builder)
Sets the builder for FROM clause of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
setGroupBy(GroupByBuilder builder)
Sets the builder for GROUP BY clause of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
setHaving(BooleanBuilder builder)
Sets the builder for grouping condition in HAVING clause of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
setOrderBy(OrderByBuilder builder)
Sets the builder for ORDER BY clause of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
setOrderByToFirstColumnIfOffsetOrLimit()
Helper method to add the first column of this SELECT statement to ORDER BY clause, if
LIMIT or OFFSET clause is present. |
PgSQLQuerySpecificationBuilder |
setSelect(ColumnsBuilder builder)
Sets the builder for columns in SELECT statement. |
PgSQLQuerySpecificationBuilder |
setWhere(BooleanBuilder builder)
Sets the builder for search condition in WHERE clause of this SELECT statement. |
PgSQLQuerySpecificationBuilder |
trimGroupBy()
Checks that all selected columns are in GROUP BY clause. |
| Methods inherited from interface org.sql.generation.api.grammar.builders.query.QuerySpecificationBuilder |
|---|
getFrom, getGroupBy, getHaving, getOrderBy, getSelect, getWhere |
| Method Detail |
|---|
PgSQLQuerySpecificationBuilder offset(OffsetClause offset)
OFFSET value of this SELECT statement.
offset - The offset for this SELECT statement.
PgSQLQuerySpecificationBuilder limit(LimitClause limit)
LIMIT value of this SELECT statement
limit - The limit (maximum amount of results) for this SELECT statement.
PgSQLQuerySpecificationBuilder setOrderByToFirstColumnIfOffsetOrLimit()
SELECT statement to ORDER BY clause, if
LIMIT or OFFSET clause is present. Calling this method on a SELECT * query has no effect.
PgSQLQuerySpecification createExpression()
AbstractBuilder
createExpression in interface AbstractBuilder<QuerySpecification>PgSQLQuerySpecificationBuilder trimGroupBy()
QuerySpecificationBuilderGROUP BY clause. If they are not, it adds them as last columns of
GROUP BY clause.
trimGroupBy in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setSelect(ColumnsBuilder builder)
QuerySpecificationBuilderSELECT statement.
setSelect in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setFrom(FromBuilder builder)
QuerySpecificationBuilderFROM clause of this SELECT statement.
setFrom in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setWhere(BooleanBuilder builder)
QuerySpecificationBuilderWHERE clause of this SELECT statement.
setWhere in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setGroupBy(GroupByBuilder builder)
QuerySpecificationBuilderGROUP BY clause of this SELECT statement.
setGroupBy in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setHaving(BooleanBuilder builder)
QuerySpecificationBuilderHAVING clause of this SELECT statement.
setHaving in interface QuerySpecificationBuilderPgSQLQuerySpecificationBuilder setOrderBy(OrderByBuilder builder)
QuerySpecificationBuilderORDER BY clause of this SELECT statement.
setOrderBy in interface QuerySpecificationBuilder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||