public class SelectQuery extends NodeExpression<List>
QueryExpression
that represents a complete select query.Constructor and Description |
---|
SelectQuery(SelectClause fieldList,
QueryExpression<QueryOrigin> origin,
QueryExpression<Boolean> whereClause,
OrderByClause orderByClause) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishAccept(QueryExpressionVisitor visitor)
This method invokes the appropriate callback of the visitor for the current node, after its children are
visited.
|
SelectClause |
getFieldList() |
OrderByClause |
getOrderByClause() |
QueryExpression<QueryOrigin> |
getOrigin() |
QueryExpression<Boolean> |
getWhereClause() |
protected void |
startAccept(QueryExpressionVisitor visitor)
This method invokes the appropriate callback of the visitor for the current node, before its children are
visited.
|
SelectQuery |
withOrderByClause(List<? extends FieldOrder<? extends Comparable>> orderList) |
SelectQuery |
withWhereClause(QueryExpression<Boolean> newWhereClause)
This method returns a new SelectQuery with the same field list, origin and order but a different where clause.
|
accept, getChildren, setChild
getExpressionType
public SelectQuery(SelectClause fieldList, QueryExpression<QueryOrigin> origin, QueryExpression<Boolean> whereClause, OrderByClause orderByClause)
public SelectQuery withWhereClause(QueryExpression<Boolean> newWhereClause)
newWhereClause
- the where clause of the resultpublic SelectQuery withOrderByClause(List<? extends FieldOrder<? extends Comparable>> orderList)
public OrderByClause getOrderByClause()
public SelectClause getFieldList()
public QueryExpression<Boolean> getWhereClause()
public QueryExpression<QueryOrigin> getOrigin()
protected void startAccept(QueryExpressionVisitor visitor)
NodeExpression
startAccept
in class NodeExpression<List>
visitor
- the visitor visiting this expressionprotected void finishAccept(QueryExpressionVisitor visitor)
NodeExpression
finishAccept
in class NodeExpression<List>
visitor
- the visitor visiting this expressionCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.