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 Detail

      • SDOFilter

        public static 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 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 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 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 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 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 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 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