public class ComparisonRestriction extends Restriction implements ComparisonRestrictionExtractor
restrictionExpressionList| Constructor and Description |
|---|
ComparisonRestriction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestriction(String propertyName,
Object value,
String comparator)
Add restriction.
|
ComparisonRestriction |
and()
to separate the previous and next restrictions by an 'AND'
|
ComparisonRestriction |
eq(String propertyName,
Object value)
To introduce a = restriction in the query
|
ComparisonRestriction |
gt(String propertyName,
Object value)
To introduce a > restriction in the query
|
ComparisonRestriction |
gte(String propertyName,
Object value)
To introduce a >= restriction in the query
|
ComparisonRestriction |
lt(String propertyName,
Object value)
To introduce a < restriction in the query
|
ComparisonRestriction |
lte(String propertyName,
Object value)
To introduce a <= restriction in the query
|
ComparisonRestriction |
notEq(String propertyName,
Object value)
To introduce a != restriction in the query
|
ComparisonRestriction |
or()
to separate the previous and next restrictions by an 'OR'
|
appendGroupedRestrictions, appendRestrictions, build, filterRestrictions, getBuildCompleted, getLogicalCombiner, getRestrictionExpressionList, setBuildCompleted, setLogicalCombiner, setRestrictionExpressionListpublic ComparisonRestriction eq(String propertyName, Object value)
eq in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic ComparisonRestriction notEq(String propertyName, Object value)
notEq in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic ComparisonRestriction lt(String propertyName, Object value)
lt in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic ComparisonRestriction lte(String propertyName, Object value)
lte in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic ComparisonRestriction gt(String propertyName, Object value)
gt in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic ComparisonRestriction gte(String propertyName, Object value)
gte in interface ComparisonRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalue - value which needs to be comparedpublic void addRestriction(String propertyName, Object value, String comparator)
AddRestrictionInterfaceaddRestriction in interface AddRestrictionInterfacepropertyName - the property namevalue - the valuecomparator - the comparatorpublic ComparisonRestriction and()
and in interface RestrictionInterfacepublic ComparisonRestriction or()
or in interface RestrictionInterfaceCopyright © 2020. All rights reserved.