Class SDOParameterMap


  • public class SDOParameterMap
    extends Object
    Represents the parameters that can be passed into Oracle's Spatial operators
    • Constructor Detail

      • SDOParameterMap

        public SDOParameterMap()
        Constructs an empty instance
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Checks whether this instance is empty
        Returns:
        true if empty, false otherwise
      • getDistance

        public Double getDistance()
      • setDistance

        public void setDistance​(Double distance)
        Adds the distance parameter with the specified value
        Parameters:
        distance - The value for the distance parameter
      • removeDistance

        public void removeDistance()
        Removes the distance parameter
      • getSdoBatchSize

        public Integer getSdoBatchSize()
      • setSdoBatchSize

        public void setSdoBatchSize​(Integer size)
        Adds the sdo_batch_size parameter with the specified value
        Parameters:
        size - The value for the sdo_batch_size parameter
      • removeSdoBatchSize

        public void removeSdoBatchSize()
        Removes the sdo_batch_size parameter
      • getSdoNumRes

        public Integer getSdoNumRes()
      • setSdoNumRes

        public void setSdoNumRes​(Integer res)
        Adds the sdo_num_res parameter with the specified value
        Parameters:
        res - The value for the sdo_num_res parameter
      • removeSdoNumRes

        public void removeSdoNumRes()
        Removes the sdo_num_res parameter
      • getUnit

        public String getUnit()
      • setUnit

        public void setUnit​(String unit)
        Adds the unit parameter with the specified value
        Parameters:
        unit - The value for the unit parameter
      • removeUnit

        public void removeUnit()
        Removes the unit parameter
      • getMaxResolution

        public Double getMaxResolution()
      • setMaxResolution

        public void setMaxResolution​(Double res)
        Adds the max_resolution parameter with the specified value
        Parameters:
        res - The value for the max_resolution parameter
      • removeMaxResolution

        public void removeMaxResolution()
        Removes the max_resolution parameter
      • getMinResolution

        public Double getMinResolution()
      • setMinResolution

        public void setMinResolution​(Double res)
        Adds the min_resolution parameter with the specified value
        Parameters:
        res - The value for the min_resolution parameter
      • removeMinResolution

        public void removeMinResolution()
        Removes the min_resolution parameter
      • getMask

        public String getMask()
      • setMask

        public void setMask​(String mask)
        Adds the mask parameter with the specified value
        Parameters:
        mask - The value for the mask parameter
      • removeMask

        public void removeMask()
        Removes the mask parameter
      • setQueryTypeToFilter

        public void setQueryTypeToFilter()
        Adds the querytype parameter with value "FILTER"
      • getQueryType

        public String getQueryType()
      • setQueryType

        public void setQueryType​(String queryType)
        Adds the querytype parameter with the specified value
        Parameters:
        queryType - The value for the quertype parameter
      • removeQueryType

        public void removeQueryType()
        Removes the querytype parameter
      • toQuotedString

        public String toQuotedString()
        Returns all parameters contained in this instance as a quoted String containing the <parameter name>=<parameter value> pairs separated by spaces.

        The return format is as expected by the various SDO_GEOMETRY spatial functions.

        Returns:
        String