Class QuerySpec
- java.lang.Object
-
- org.hibernate.sql.ast.tree.select.QueryPart
-
- org.hibernate.sql.ast.tree.select.QuerySpec
-
- All Implemented Interfaces:
PredicateContainer
,SqlAstNode
public class QuerySpec extends QueryPart implements SqlAstNode, PredicateContainer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(SqlAstWalker sqlTreeWalker)
void
applyPredicate(Predicate predicate)
Apply a predicate to this containerQuerySpec
asRootQuery()
QuerySpec
asSubQuery()
QuerySpec
getFirstQuerySpec()
FromClause
getFromClause()
List<Expression>
getGroupByClauseExpressions()
Predicate
getHavingClauseRestrictions()
QuerySpec
getLastQuerySpec()
SelectClause
getSelectClause()
Predicate
getWhereClauseRestrictions()
<T> T
queryQuerySpecs(Function<QuerySpec,T> querySpecConsumer)
void
setGroupByClauseExpressions(List<Expression> groupByClauseExpressions)
void
setHavingClauseRestrictions(Predicate havingClauseRestrictions)
void
visitQuerySpecs(Consumer<QuerySpec> querySpecConsumer)
-
Methods inherited from class org.hibernate.sql.ast.tree.select.QueryPart
addSortSpecification, getFetchClauseExpression, getFetchClauseType, getOffsetClauseExpression, getSortSpecifications, hasOffsetOrFetchClause, hasPositionalSortItem, hasSortSpecifications, isRoot, setFetchClauseExpression, setOffsetClauseExpression, visitSortSpecifications
-
-
-
-
Method Detail
-
asSubQuery
public QuerySpec asSubQuery()
-
asRootQuery
public QuerySpec asRootQuery()
-
getFirstQuerySpec
public QuerySpec getFirstQuerySpec()
- Specified by:
getFirstQuerySpec
in classQueryPart
-
getLastQuerySpec
public QuerySpec getLastQuerySpec()
- Specified by:
getLastQuerySpec
in classQueryPart
-
visitQuerySpecs
public void visitQuerySpecs(Consumer<QuerySpec> querySpecConsumer)
- Specified by:
visitQuerySpecs
in classQueryPart
-
queryQuerySpecs
public <T> T queryQuerySpecs(Function<QuerySpec,T> querySpecConsumer)
- Specified by:
queryQuerySpecs
in classQueryPart
-
getFromClause
public FromClause getFromClause()
-
getSelectClause
public SelectClause getSelectClause()
-
getWhereClauseRestrictions
public Predicate getWhereClauseRestrictions()
-
applyPredicate
public void applyPredicate(Predicate predicate)
Description copied from interface:PredicateContainer
Apply a predicate to this container- Specified by:
applyPredicate
in interfacePredicateContainer
-
getGroupByClauseExpressions
public List<Expression> getGroupByClauseExpressions()
-
setGroupByClauseExpressions
public void setGroupByClauseExpressions(List<Expression> groupByClauseExpressions)
-
getHavingClauseRestrictions
public Predicate getHavingClauseRestrictions()
-
setHavingClauseRestrictions
public void setHavingClauseRestrictions(Predicate havingClauseRestrictions)
-
accept
public void accept(SqlAstWalker sqlTreeWalker)
- Specified by:
accept
in interfaceSqlAstNode
-
-