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