Class OracleSpatialRestrictions


  • public class OracleSpatialRestrictions
    extends 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​(String propertyName, com.vividsolutions.jts.geom.Geometry geom, Double minResolution, Double maxResolution)
      Apply the "SDO_FILTER" constraint to the specified property, using the specified parameters
      static org.hibernate.criterion.Criterion SDOFilter​(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​(String propertyName, com.vividsolutions.jts.geom.Geometry geom, Double distance, Integer numResults, String unit)
      Apply the "SDO_NN" constraint to the specified property, using the specified parameters
      static org.hibernate.criterion.Criterion SDONN​(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​(String propertyName, com.vividsolutions.jts.geom.Geometry geom, RelationshipMask[] mask, Double minResolution, Double maxResolution)
      Apply the "SDO_RELATE" constraint to the specified property, using the specified parameters.
      static org.hibernate.criterion.Criterion SDORelate​(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​(String propertyName, com.vividsolutions.jts.geom.Geometry geom, Double distance, SDOParameterMap param)
      Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
      static org.hibernate.criterion.Criterion SDOWithinDistance​(String propertyName, com.vividsolutions.jts.geom.Geometry geom, SDOParameterMap param)
      Apply the "SDO_WITHIN_DISTANCE" constraint to the specified property, using the specified SDOParameterMap.
    • Method Detail

      • SDOFilter

        public static org.hibernate.criterion.Criterion SDOFilter​(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​(String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  Double minResolution,
                                                                  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​(String propertyName,
                                                              com.vividsolutions.jts.geom.Geometry geom,
                                                              Double distance,
                                                              Integer numResults,
                                                              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​(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​(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​(String propertyName,
                                                                  com.vividsolutions.jts.geom.Geometry geom,
                                                                  RelationshipMask[] mask,
                                                                  Double minResolution,
                                                                  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​(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​(String propertyName,
                                                                          com.vividsolutions.jts.geom.Geometry geom,
                                                                          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