public class DWithinExpression
extends java.lang.Object
implements org.hibernate.criterion.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 |
|---|---|
org.hibernate.engine.spi.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
java.lang.String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery) |
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(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
toSqlString in interface org.hibernate.criterion.Criterionorg.hibernate.HibernateExceptionpublic 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.HibernateExceptionCopyright © 2001-2025 Red Hat, Inc. All Rights Reserved.