public class SpatialFilter extends Object implements org.hibernate.criterion.Criterion
A <code>Criterion</code> constraining a geometry property to have a bounding box that overlaps with a specified bounding box.
| Constructor and Description |
|---|
SpatialFilter(String propertyName,
com.vividsolutions.jts.geom.Envelope envelope,
int srid)
Constructs an instance with the specified property and the bounding box of the specified geometry.
|
SpatialFilter(String propertyName,
com.vividsolutions.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 |
|---|---|
org.hibernate.engine.spi.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
public SpatialFilter(String propertyName, com.vividsolutions.jts.geom.Geometry filter)
Constructs an instance with the specified property and the bounding box of the specified geometry.
propertyName - The name of the propety being constrainedfilter - The geometry whose bounding box is used as search geometrypublic SpatialFilter(String propertyName, com.vividsolutions.jts.geom.Envelope envelope, int srid)
Constructs an instance with the specified property and the bounding box of the specified geometry.
propertyName - The name of the propety being constrainedenvelope - The bounding box is used as search geometrysrid - The SRID of the specified bounding boxpublic org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
getTypedValues in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionpublic String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
toSqlString in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.