Class GreaterThanConditionalSearchCriteria

java.lang.Object
com.samupert.univpm.eurostat.filtering.criteria.conditional.ConditionalSearchCriteria<Number>
com.samupert.univpm.eurostat.filtering.criteria.conditional.GreaterThanConditionalSearchCriteria
All Implemented Interfaces:
SearchCriteriaSpecification, Serializable, org.springframework.data.jpa.domain.Specification<MonetaryPoverty>

public class GreaterThanConditionalSearchCriteria extends ConditionalSearchCriteria<Number>
The conditional search criteria specification that checks if the field value is greater than the given value. See Specification.
The JSON filter is:
 {
     "operation": "$gt",
     "fieldName": "timePeriod",
     "value": 2018
  }
 
See Also:
  • Constructor Details

  • Method Details

    • getPredicate

      protected jakarta.persistence.criteria.Predicate getPredicate(jakarta.persistence.criteria.Root<MonetaryPoverty> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder)
      Description copied from class: ConditionalSearchCriteria
      Wrapper method that returns the predicate of the search criteria.
      Specified by:
      getPredicate in class ConditionalSearchCriteria<Number>
      Parameters:
      root - A root type in the from clause. Query roots always reference entities.
      query - The query to be built.
      criteriaBuilder - The criteria builder to be used.
      Returns:
      The predicate of the search criteria.
    • getSupportedFieldTypes

      protected List<Class<?>> getSupportedFieldTypes()
      Description copied from class: ConditionalSearchCriteria
      Gets the list of supported field types of the search criteria.
      Specified by:
      getSupportedFieldTypes in class ConditionalSearchCriteria<Number>
      Returns:
      The list of supported field types of the search criteria.