Class ValueGreaterThan

All Implemented Interfaces:
QueryCriteria

public class ValueGreaterThan extends NumericQueryCriteria
A NumericQueryCriteria testing that the value of a field is greater than a value
  • Constructor Details

    • ValueGreaterThan

      public ValueGreaterThan(String fieldName, Number value)
  • 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.