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

public abstract static class QueryModel.Junction extends Object implements QueryModel.Criterion
base class for a junction (AND or OR or NOT).
  • Constructor Details

    • Junction

      protected Junction()
      Default constructor.
    • Junction

      public Junction(List<QueryModel.Criterion> criteria)
      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

      public List<QueryModel.Criterion> getCriteria()
      Returns:
      The Criterion for the junction.
    • isEmpty

      public boolean isEmpty()
      Returns:
      Whether the junction is empty