public class SpatialFilter extends Object implements Criterion
Criterion constraining a geometry property to have a bounding box that overlaps with
a specified bounding box.| Constructor and Description |
|---|
SpatialFilter(String propertyName,
org.locationtech.jts.geom.Envelope envelope,
int srid)
Constructs an instance with the specified property and the bounding box of the specified geometry.
|
SpatialFilter(String propertyName,
org.locationtech.jts.geom.Geometry filter)
Constructs an instance with the specified property and the bounding box of the specified geometry.
|
| Modifier and Type | Method and Description |
|---|---|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public SpatialFilter(String propertyName, org.locationtech.jts.geom.Geometry filter)
propertyName - The name of the propety being constrainedfilter - The geometry whose bounding box is used as search geometrypublic SpatialFilter(String propertyName, org.locationtech.jts.geom.Envelope envelope, int srid)
propertyName - The name of the propety being constrainedenvelope - The bounding box is used as search geometrysrid - The SRID of the specified bounding boxpublic TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriongetTypedValues in interface Criterioncriteria - The local criteriacriteriaQuery - The overall criteria queryHibernateException - Problem determining types.public String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
CriteriontoSqlString in interface Criterioncriteria - The local criteriacriteriaQuery - The overall criteria queryHibernateException - Problem during rendering.Copyright © 2001-2021 Red Hat, Inc. All Rights Reserved.