public class INRestriction extends Restriction implements INRestrictionExtractor
restrictionExpressionList| Constructor and Description |
|---|
INRestriction() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestriction(String propertyName,
Object value,
String comparator)
Add restriction.
|
INRestriction |
and()
to separate the previous and next restrictions by an 'AND'
|
<T> INRestriction |
in(String propertyName,
List<T> values)
To introduce an in restriction in the query
|
INRestriction |
in(String propertyName,
Object... values)
To introduce an in restriction in the query
|
INRestriction |
or()
to separate the previous and next restrictions by an 'OR'
|
appendGroupedRestrictions, appendRestrictions, build, filterRestrictions, getBuildCompleted, getLogicalCombiner, getRestrictionExpressionList, setBuildCompleted, setLogicalCombiner, setRestrictionExpressionListpublic <T> INRestriction in(String propertyName, List<T> values)
T - typepropertyName - property on which the restriction needs to be appliedvalues - values separated by comma ','public INRestriction in(String propertyName, Object... values)
in in interface INRestrictionExtractorpropertyName - property on which the restriction needs to be appliedvalues - values separated by comma ','public void addRestriction(String propertyName, Object value, String comparator)
AddRestrictionInterfaceaddRestriction in interface AddRestrictionInterfacepropertyName - the property namevalue - the valuecomparator - the comparatorpublic INRestriction and()
and in interface RestrictionInterfacepublic INRestriction or()
or in interface RestrictionInterfaceCopyright © 2020. All rights reserved.