Class ValueIsOneOf

java.lang.Object
io.john.amiscaray.quak.data.query.SimpleQueryCriteria
io.john.amiscaray.quak.data.query.ValueIsOneOf
All Implemented Interfaces:
QueryCriteria

public class ValueIsOneOf extends SimpleQueryCriteria
Tests that the value of a field is equal to one of the values in a set of values
  • Constructor Details

    • ValueIsOneOf

      public ValueIsOneOf(String fieldName, Object... values)
  • Method Details

    • getTestPredicate

      public jakarta.persistence.criteria.Predicate getTestPredicate(jakarta.persistence.criteria.Root<?> queryRoot, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
      Description copied from interface: QueryCriteria
      Creates a predicate using the given query root and criteria builder.
      Parameters:
      queryRoot - The query root.
      criteriaBuilder - The criteria builder.
      Returns:
      The predicate representing the criteria to query the database.