public abstract class QueryExpression extends JsonObject
| Constructor and Description |
|---|
QueryExpression() |
| Modifier and Type | Method and Description |
|---|---|
QueryExpression |
bind(List<FieldBinding> bindingResult,
Set<Path> bindRequest) |
QueryExpression |
bind(Path ctx,
List<FieldBinding> bindingResult,
Set<Path> bindRequest)
Binds all the bindable fields in the bindRequest, populates the
bindingResult with binding information, and return a new QueryExpression
with bound values.
|
static QueryExpression |
fromJson(com.fasterxml.jackson.databind.JsonNode node)
Parses a query expression from the given json node
|
List<QueryInContext> |
getBindableClauses()
Returns the query expressions that can be bound to a value
These clauses are bindable:
FieldComparisonExpression
NaryFieldRelationalExpression
|
void |
getBindableClauses(List<QueryInContext> list,
Path ctx)
Adds the query expressions that can be bound to a value to the given list
|
List<FieldInfo> |
getQueryFields()
Returns field information about the query
|
void |
getQueryFields(List<FieldInfo> fields)
Returns field information about the query
|
void |
getQueryFields(List<FieldInfo> fields,
Path ctx)
The implementation should populate the list with the field information
|
boolean |
isRequired(Path field)
Returns if the field is required to evaluate this query
|
boolean |
isRequired(Path field,
Path ctx)
Returns if the field is required to evaluate this query
|
getFactory, getSourceNode, toJson, toStringpublic void getQueryFields(List<FieldInfo> fields)
fields - The call adds the field information to this listpublic void getQueryFields(List<FieldInfo> fields, Path ctx)
public List<QueryInContext> getBindableClauses()
public void getBindableClauses(List<QueryInContext> list, Path ctx)
public QueryExpression bind(List<FieldBinding> bindingResult, Set<Path> bindRequest)
public QueryExpression bind(Path ctx, List<FieldBinding> bindingResult, Set<Path> bindRequest)
ctx - ContextbindingResult - The results of the bindings will be added to this
listbindRequest - Full paths to the fields to be bound. If there are
array elements, '*' must be usedpublic static QueryExpression fromJson(com.fasterxml.jackson.databind.JsonNode node)
public boolean isRequired(Path field)
field - The fieldCopyright © 2015. All rights reserved.