T - The final type of the builder, used for a fluid chaining interface.public interface Condition<T extends QBuilder<T>>
| 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.
|
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.
|
T and()
Partial.and(List) and Partial.or(List).T or()
Partial.and(List) and Partial.or(List).<Q> Q query(ContextualNodeVisitor<Q,Void> visitor)
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.<Q,S> Q query(ContextualNodeVisitor<Q,S> visitor, S context)
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.Copyright © 2017. All rights reserved.