Class OracleSpatialRestrictions


  • public class OracleSpatialRestrictions
    extends java.lang.Object
    A static factory class for spatial criteria using the Oracle Spatial native spatial operators for the SDO_GEOMTRY type.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.hibernate.criterion.Criterion SDOFilter​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, java.lang.Double minResolution, java.lang.Double maxResolution)
      Apply the "SDO_FILTER" constraint to the specified property, using the specified parameters
      static org.hibernate.criterion.Criterion SDOFilter​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, SDOParameterMap param)
      Apply the "SDO_FILTER" constraint to the specified property, using the specified parameters
      static org.hibernate.criterion.Criterion SDONN​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, java.lang.Double distance, java.lang.Integer numResults, java.lang.String unit)
      Apply the "SDO_NN" constraint to the specified property, using the specified parameters
      static org.hibernate.criterion.Criterion SDONN​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, SDOParameterMap param)
      Apply the "SDO_NN" constraint to the specified property, using the specified SDOParameterMap
      static org.hibernate.criterion.Criterion SDORelate​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, RelationshipMask[] mask, java.lang.Double minResolution, java.lang.Double maxResolution)
      Apply the "SDO_RELATE" constraint to the specified property, using the specified parameters.
      static org.hibernate.criterion.Criterion SDORelate​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, SDOParameterMap param)
      Apply the "SDO_RELATE" constraint to the specified property, using the specified SDOParameterMap
      static org.hibernate.criterion.Criterion SDOWithinDistance​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, java.lang.Double distance, SDOParameterMap param)
      Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
      static org.hibernate.criterion.Criterion SDOWithinDistance​(java.lang.String propertyName, com.vividsolutions.jts.geom.Geometry geom, SDOParameterMap param)
      Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
      • Methods inherited from class java.lang.Object

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

      • SDOFilter

        public static org.hibernate.criterion.Criterion SDOFilter​(java.lang.String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  SDOParameterMap param)
        Apply the "SDO_FILTER" constraint to the specified property, using the specified parameters
        Parameters:
        propertyName - The name of the proerty
        geom - The search geometry to use in the constraint
        param - The function parameters for the SDO_FILTER
        Returns:
        The Criterion
      • SDOFilter

        public static org.hibernate.criterion.Criterion SDOFilter​(java.lang.String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  java.lang.Double minResolution,
                                                                  java.lang.Double maxResolution)
        Apply the "SDO_FILTER" constraint to the specified property, using the specified parameters
        Parameters:
        propertyName - The name of the proerty
        geom - The search geometry to use in the constraint
        minResolution - The min_resolution parameter
        maxResolution - The max_resolution parameter
        Returns:
        The Criterion
      • SDONN

        public static org.hibernate.criterion.Criterion SDONN​(java.lang.String propertyName,
                                                              com.vividsolutions.jts.geom.Geometry geom,
                                                              java.lang.Double distance,
                                                              java.lang.Integer numResults,
                                                              java.lang.String unit)
        Apply the "SDO_NN" constraint to the specified property, using the specified parameters
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        distance - The distance parameter
        numResults - The num_results parameter
        unit - The unit parameter
        Returns:
        The Criterion
      • SDONN

        public static org.hibernate.criterion.Criterion SDONN​(java.lang.String propertyName,
                                                              com.vividsolutions.jts.geom.Geometry geom,
                                                              SDOParameterMap param)
        Apply the "SDO_NN" constraint to the specified property, using the specified SDOParameterMap
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        param - The parameters for the constraint function
        Returns:
        The Criterion
      • SDORelate

        public static org.hibernate.criterion.Criterion SDORelate​(java.lang.String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  SDOParameterMap param)
        Apply the "SDO_RELATE" constraint to the specified property, using the specified SDOParameterMap
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        param - The parameters for the constraint function
        Returns:
        The Criterion
      • SDORelate

        public static org.hibernate.criterion.Criterion SDORelate​(java.lang.String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  RelationshipMask[] mask,
                                                                  java.lang.Double minResolution,
                                                                  java.lang.Double maxResolution)
        Apply the "SDO_RELATE" constraint to the specified property, using the specified parameters.
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        mask - The mask parameter
        minResolution - The min_resolution parameter
        maxResolution - The max_resolution parameter
        Returns:
        The Criterion
      • SDOWithinDistance

        public static org.hibernate.criterion.Criterion SDOWithinDistance​(java.lang.String propertyName,
                                                                          com.vividsolutions.jts.geom.Geometry geom,
                                                                          SDOParameterMap param)
        Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        param - The parameters for the constraint function
        Returns:
        The Criterion
      • SDOWithinDistance

        public static org.hibernate.criterion.Criterion SDOWithinDistance​(java.lang.String propertyName,
                                                                          com.vividsolutions.jts.geom.Geometry geom,
                                                                          java.lang.Double distance,
                                                                          SDOParameterMap param)
        Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
        Parameters:
        propertyName - The name of the property
        geom - The search geometry to use in the constraint
        distance - The distance parameter for the constraint function
        param - The parameters for the constraint function
        Returns:
        The Criterion