Package openGql.grammar
Class SelectStatementBodyAndClauses
- java.lang.Object
-
- openGql.grammar.SelectStatementBodyAndClauses
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SelectStatementBodyAndClauses>
public class SelectStatementBodyAndClauses extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<SelectStatementBodyAndClauses>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description SelectStatementBodybodystatic NameBODYName of theopenGql.grammar.SelectStatementBodyAndClauses.bodyfield.static NameGROUP_BYName of theopenGql.grammar.SelectStatementBodyAndClauses.groupByfield.Optional<GroupingElementList>groupByOptional<ValueExpression>havingstatic NameHAVINGName of theopenGql.grammar.SelectStatementBodyAndClauses.havingfield.Optional<NonNegativeIntegerSpecification>limitstatic NameLIMITName of theopenGql.grammar.SelectStatementBodyAndClauses.limitfield.Optional<OffsetClause>offsetstatic NameOFFSETName of theopenGql.grammar.SelectStatementBodyAndClauses.offsetfield.static NameORDER_BYName of theopenGql.grammar.SelectStatementBodyAndClauses.orderByfield.Optional<java.util.List<SortSpecification>>orderBystatic NameTYPE_Name of theopenGql.grammar.SelectStatementBodyAndClausestype.Optional<ValueExpression>wherestatic NameWHEREName of theopenGql.grammar.SelectStatementBodyAndClauses.wherefield.
-
Constructor Summary
Constructors Constructor Description SelectStatementBodyAndClauses(SelectStatementBody body, Optional<ValueExpression> where, Optional<GroupingElementList> groupBy, Optional<ValueExpression> having, Optional<java.util.List<SortSpecification>> orderBy, Optional<OffsetClause> offset, Optional<NonNegativeIntegerSpecification> limit)Constructs an immutableSelectStatementBodyAndClauses.
-
Method Summary
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of theopenGql.grammar.SelectStatementBodyAndClausestype.
-
BODY
public static final Name BODY
Name of theopenGql.grammar.SelectStatementBodyAndClauses.bodyfield.
-
WHERE
public static final Name WHERE
Name of theopenGql.grammar.SelectStatementBodyAndClauses.wherefield.
-
GROUP_BY
public static final Name GROUP_BY
Name of theopenGql.grammar.SelectStatementBodyAndClauses.groupByfield.
-
HAVING
public static final Name HAVING
Name of theopenGql.grammar.SelectStatementBodyAndClauses.havingfield.
-
ORDER_BY
public static final Name ORDER_BY
Name of theopenGql.grammar.SelectStatementBodyAndClauses.orderByfield.
-
OFFSET
public static final Name OFFSET
Name of theopenGql.grammar.SelectStatementBodyAndClauses.offsetfield.
-
LIMIT
public static final Name LIMIT
Name of theopenGql.grammar.SelectStatementBodyAndClauses.limitfield.
-
body
public final SelectStatementBody body
-
where
public final Optional<ValueExpression> where
-
groupBy
public final Optional<GroupingElementList> groupBy
-
having
public final Optional<ValueExpression> having
-
orderBy
public final Optional<java.util.List<SortSpecification>> orderBy
-
offset
public final Optional<OffsetClause> offset
-
limit
public final Optional<NonNegativeIntegerSpecification> limit
-
-
Constructor Detail
-
SelectStatementBodyAndClauses
public SelectStatementBodyAndClauses(SelectStatementBody body, Optional<ValueExpression> where, Optional<GroupingElementList> groupBy, Optional<ValueExpression> having, Optional<java.util.List<SortSpecification>> orderBy, Optional<OffsetClause> offset, Optional<NonNegativeIntegerSpecification> limit)
Constructs an immutableSelectStatementBodyAndClauses.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(SelectStatementBodyAndClauses other)
- Specified by:
compareToin interfacejava.lang.Comparable<SelectStatementBodyAndClauses>
-
withBody
public SelectStatementBodyAndClauses withBody(SelectStatementBody body)
Returns a copy of thisSelectStatementBodyAndClauseswithbodyreplaced.
-
withWhere
public SelectStatementBodyAndClauses withWhere(Optional<ValueExpression> where)
Returns a copy of thisSelectStatementBodyAndClauseswithwherereplaced.
-
withGroupBy
public SelectStatementBodyAndClauses withGroupBy(Optional<GroupingElementList> groupBy)
Returns a copy of thisSelectStatementBodyAndClauseswithgroupByreplaced.
-
withHaving
public SelectStatementBodyAndClauses withHaving(Optional<ValueExpression> having)
Returns a copy of thisSelectStatementBodyAndClauseswithhavingreplaced.
-
withOrderBy
public SelectStatementBodyAndClauses withOrderBy(Optional<java.util.List<SortSpecification>> orderBy)
Returns a copy of thisSelectStatementBodyAndClauseswithorderByreplaced.
-
withOffset
public SelectStatementBodyAndClauses withOffset(Optional<OffsetClause> offset)
Returns a copy of thisSelectStatementBodyAndClauseswithoffsetreplaced.
-
withLimit
public SelectStatementBodyAndClauses withLimit(Optional<NonNegativeIntegerSpecification> limit)
Returns a copy of thisSelectStatementBodyAndClauseswithlimitreplaced.
-
-