Package org.hibernate.spatial.criterion
Class DWithinExpression
- java.lang.Object
-
- org.hibernate.spatial.criterion.DWithinExpression
-
- All Implemented Interfaces:
java.io.Serializable
,org.hibernate.criterion.Criterion
public class DWithinExpression extends java.lang.Object implements org.hibernate.criterion.Criterion
ACriterion
constraining a geometry property to be within a specified distance of a search geometry.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DWithinExpression(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geometry, double distance)
Constructs an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Constructor Detail
-
DWithinExpression
public DWithinExpression(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geometry, double distance)
Constructs an instance- Parameters:
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)
-
-
Method Detail
-
toSqlString
public java.lang.String toSqlString(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
- Specified by:
toSqlString
in interfaceorg.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
-
getTypedValues
public org.hibernate.engine.spi.TypedValue[] getTypedValues(org.hibernate.Criteria criteria, org.hibernate.criterion.CriteriaQuery criteriaQuery) throws org.hibernate.HibernateException
- Specified by:
getTypedValues
in interfaceorg.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
-
-