Class SpatialFilter

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

    public class SpatialFilter
    extends java.lang.Object
    implements org.hibernate.criterion.Criterion
    A Criterion constraining a geometry property to have a bounding box that overlaps with a specified bounding box.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SpatialFilter​(java.lang.String propertyName, com.vividsolutions.jts.geom.Envelope envelope, int srid)
      Constructs an instance with the specified property and the bounding box of the specified geometry.
      SpatialFilter​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry filter)
      Constructs an instance with the specified property and the bounding box of the specified geometry.
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpatialFilter

        public SpatialFilter​(java.lang.String propertyName,
                             com.vividsolutions.jts.geom.Geometry filter)
        Constructs an instance with the specified property and the bounding box of the specified geometry.
        Parameters:
        propertyName - The name of the propety being constrained
        filter - The geometry whose bounding box is used as search geometry
      • SpatialFilter

        public SpatialFilter​(java.lang.String propertyName,
                             com.vividsolutions.jts.geom.Envelope envelope,
                             int srid)
        Constructs an instance with the specified property and the bounding box of the specified geometry.
        Parameters:
        propertyName - The name of the propety being constrained
        envelope - The bounding box is used as search geometry
        srid - The SRID of the specified bounding box
    • 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 java.lang.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