Class EqualsNotConditionalSearchCriteria
java.lang.Object
com.samupert.univpm.eurostat.filtering.criteria.conditional.ConditionalSearchCriteria<Object>
com.samupert.univpm.eurostat.filtering.criteria.conditional.EqualsConditionalSearchCriteria
com.samupert.univpm.eurostat.filtering.criteria.conditional.EqualsNotConditionalSearchCriteria
- All Implemented Interfaces:
SearchCriteriaSpecification
,Serializable
,org.springframework.data.jpa.domain.Specification<MonetaryPoverty>
The conditional search criteria specification that checks if the field value isn't equal to the given value. See
The JSON filter is:
Specification
.
The JSON filter is:
{ "operation": "$neq", "fieldName": "activityAndEmploymentStatus", "value": "EMP" }
- See Also:
-
Field Summary
Fields inherited from class com.samupert.univpm.eurostat.filtering.criteria.conditional.ConditionalSearchCriteria
fieldName, value
Fields inherited from interface org.springframework.data.jpa.domain.Specification
serialVersionUID
-
Constructor Summary
ConstructorDescriptionEqualsNotConditionalSearchCriteria
(String fieldName, Object value) Creates a new instance of theEqualsNotConditionalSearchCriteria
class. -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.persistence.criteria.Predicate
getPredicate
(jakarta.persistence.criteria.Root<MonetaryPoverty> root, jakarta.persistence.criteria.CriteriaQuery<?> query, jakarta.persistence.criteria.CriteriaBuilder criteriaBuilder) Wrapper method that returns the predicate of the search criteria.Methods inherited from class com.samupert.univpm.eurostat.filtering.criteria.conditional.EqualsConditionalSearchCriteria
getSupportedFieldTypes
Methods inherited from class com.samupert.univpm.eurostat.filtering.criteria.conditional.ConditionalSearchCriteria
toPredicate, validateFieldName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.jpa.domain.Specification
and, or
-
Constructor Details
-
EqualsNotConditionalSearchCriteria
Creates a new instance of theEqualsNotConditionalSearchCriteria
class.- Parameters:
fieldName
- The field name to filter.value
- The value to filter.- Throws:
ClassCastException
-
-
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.- Overrides:
getPredicate
in classEqualsConditionalSearchCriteria
- 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.
-