Class SpatialRelateExpression

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

    public class SpatialRelateExpression
    extends Object
    implements org.hibernate.criterion.Criterion
    A Criterion constraining a Geometry property to have specific spatial relation to a search Geometry.
    See Also:
    Serialized Form
    • Constructor Detail

      • SpatialRelateExpression

        public SpatialRelateExpression​(String propertyName,
                                       com.vividsolutions.jts.geom.Geometry value,
                                       int spatialRelation)
        Constructs an instance
        Parameters:
        propertyName - The name of the property being constrained
        value - The search Geometry
        spatialRelation - The type of SpatialRelation to use in the comparison
    • Method Detail

      • 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
      • 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