protected final class QBuilder.ConditionDelegate extends Delegate<T> implements Condition<T>
QBuilder.ConditionDelegate| Modifier and Type | Method and Description |
|---|---|
T |
and()
Prepare to append another condition onto the current node in the condition tree
in such a way that both the preceeding condition AND the next condition
specified must be met in order to match an object.
|
LogicalNode |
getRootNode() |
T |
or()
Prepare to append another condition onto the current node in the condition tree
in such a way that both the preceeding condition OR the next condition
specified must be met in order to match an object.
|
<Q,S> Q |
query(ContextualNodeVisitor<Q,S> visitor,
S context)
Given this logically complete condition, execute a node visitor against the
underlying condition tree in order to build a query or predicate against which
objects can be queried / tested.
|
<Q> Q |
query(ContextualNodeVisitor<Q,Void> visitor)
Given this logically complete condition, execute a node visitor against the
underlying condition tree in order to build a query or predicate against which
objects can be queried / tested.
|
public final T and()
ConditionPartial.and(List) and Partial.or(List).public final T or()
ConditionPartial.and(List) and Partial.or(List).public final <Q> Q query(ContextualNodeVisitor<Q,Void> visitor)
Conditionquery in interface Condition<T extends QBuilder<T>>Q - The type of the results returned from visiting any node in the tree.visitor - The visitor which specifies how to traverse the nodes in the visitor tree.
Nodes can be AndNodes or OrNodes or ComparisonNodes.public final <Q,S> Q query(ContextualNodeVisitor<Q,S> visitor, S context)
Conditionquery in interface Condition<T extends QBuilder<T>>Q - The type of the results returned from visiting any node in the tree.visitor - The visitor which specifies how to traverse the nodes in the visitor tree.
Nodes can be AndNodes or OrNodes or ComparisonNodes.public final LogicalNode getRootNode()
Copyright © 2017. All rights reserved.