Class DWithinExpression

  • All Implemented Interfaces:
    Serializable, org.hibernate.criterion.Criterion

    public class DWithinExpression
    extends Object
    implements org.hibernate.criterion.Criterion
    A Criterion constraining a geometry property to be within a specified distance of a search geometry.
    See Also:
    Serialized Form
    • Constructor Detail

      • DWithinExpression

        public DWithinExpression​(String propertyName,
                                 com.vividsolutions.jts.geom.Geometry geometry,
                                 double distance)
        Constructs an instance
        Parameters:
        propertyName - The name of the property being constrained
        geometry - The search geometry
        distance - The search distance (in units of the spatial reference system of the search geometry)
    • Method Detail

      • toSqlString

        public String toSqlString​(org.hibernate.Criteria criteria,
                                  org.hibernate.criterion.CriteriaQuery criteriaQuery)
                           throws org.hibernate.HibernateException
        Specified by:
        toSqlString in interface org.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 interface org.hibernate.criterion.Criterion
        Throws:
        org.hibernate.HibernateException