public class SpatialFilter extends java.lang.Object implements Criterion
Criterion
constraining a geometry property to have a bounding box that overlaps with
a specified bounding box.Constructor and Description |
---|
SpatialFilter(java.lang.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(java.lang.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 |
---|---|
TypedValue[] |
getTypedValues(Criteria criteria,
CriteriaQuery criteriaQuery)
Return typed values for all parameters in the rendered SQL fragment
|
java.lang.String |
toSqlString(Criteria criteria,
CriteriaQuery criteriaQuery)
Render the SQL fragment
|
public SpatialFilter(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry filter)
propertyName
- The name of the propety being constrainedfilter
- The geometry whose bounding box is used as search geometrypublic SpatialFilter(java.lang.String propertyName, com.vividsolutions.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
Criterion
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem determining types.public java.lang.String toSqlString(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
toSqlString
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem during rendering.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.