public class ArithmeticRestriction extends Restriction implements ArithmeticRestrictionExtractor
restrictionExpressionList| Constructor and Description |
|---|
ArithmeticRestriction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestriction(String propertyName,
Object value,
String comparator)
Add restriction.
|
ArithmeticRestriction |
and()
to separate the previous and next restrictions by an 'AND'
|
ArithmeticRestriction |
eq(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with =
|
ArithmeticRestriction |
gt(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with >
|
ArithmeticRestriction |
gte(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with >=
|
ArithmeticRestriction |
lt(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with <
|
ArithmeticRestriction |
lte(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with <=
|
ArithmeticRestriction |
notEq(Double value,
String expression,
Object... parameters)
To introduce an arithmetic restriction in the query with !=
|
Restriction |
or()
to separate the previous and next restrictions by an 'OR'
|
appendGroupedRestrictions, appendRestrictions, build, filterRestrictions, getBuildCompleted, getLogicalCombiner, getRestrictionExpressionList, setBuildCompleted, setLogicalCombiner, setRestrictionExpressionListpublic ArithmeticRestriction eq(Double value, String expression, Object... parameters)
eq in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic ArithmeticRestriction notEq(Double value, String expression, Object... parameters)
notEq in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic ArithmeticRestriction lt(Double value, String expression, Object... parameters)
lt in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic ArithmeticRestriction lte(Double value, String expression, Object... parameters)
lte in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic ArithmeticRestriction gt(Double value, String expression, Object... parameters)
gt in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic ArithmeticRestriction gte(Double value, String expression, Object... parameters)
gte in interface ArithmeticRestrictionExtractorvalue - distance in doubleexpression - like {} + {}parameters - sequence of parameters and valuespublic void addRestriction(String propertyName, Object value, String comparator)
AddRestrictionInterfaceaddRestriction in interface AddRestrictionInterfacepropertyName - the property namevalue - the valuecomparator - the comparatorpublic ArithmeticRestriction and()
and in interface RestrictionInterfacepublic Restriction or()
or in interface RestrictionInterfaceCopyright © 2020. All rights reserved.