public class DWithinExpression extends java.lang.Object implements Criterion
Criterion
constraining a geometry property to be within a specified distance of a search geometry.Constructor and Description |
---|
DWithinExpression(java.lang.String propertyName,
com.vividsolutions.jts.geom.Geometry geometry,
double distance)
Constructs an instance
|
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 DWithinExpression(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geometry, double distance)
propertyName
- The name of the property being constrainedgeometry
- The search geometrydistance
- The search distance (in units of the spatial reference system of the search geometry)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.public TypedValue[] getTypedValues(Criteria criteria, CriteriaQuery criteriaQuery) throws HibernateException
Criterion
getTypedValues
in interface Criterion
criteria
- The local criteriacriteriaQuery
- The overal criteria queryHibernateException
- Problem determining types.Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.