Package io.micronaut.data.model.query
Class QueryModel.Junction
java.lang.Object
io.micronaut.data.model.query.QueryModel.Junction
- All Implemented Interfaces:
QueryModel.Criterion
- Direct Known Subclasses:
QueryModel.Conjunction,QueryModel.Disjunction,QueryModel.Negation
- Enclosing interface:
- QueryModel
base class for a junction (AND or OR or NOT).
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJunction()Default constructor.Junction(List<QueryModel.Criterion> criteria) Creates a junction for a list of citeria. -
Method Summary
-
Constructor Details
-
Junction
protected Junction()Default constructor. -
Junction
Creates a junction for a list of citeria.- Parameters:
criteria- the criteria
-
-
Method Details
-
add
Adds another criterion.- Parameters:
c- The criterion- Returns:
- This junction
-
getCriteria
- Returns:
- The Criterion for the junction.
-
isEmpty
public boolean isEmpty()- Returns:
- Whether the junction is empty
-