Class SDOParameterMap
- java.lang.Object
-
- org.hibernate.spatial.dialect.oracle.criterion.SDOParameterMap
-
public class SDOParameterMap extends Object
Represents the parameters that can be passed into Oracle's Spatial operators
-
-
Field Summary
Fields Modifier and Type Field Description static StringDISTANCEThe distance parameterstatic StringMASKThe mask parameterstatic StringMAX_RESOLUTIONThe max_resolution parameterstatic StringMIN_RESOLUTIONThe min_resolution parameterstatic StringQUERYTYPEThe querytype parameterstatic StringSDO_BATCH_SIZEThe sdo_batch_size parameterstatic StringSDO_NUM_RESThe sdo_num_res parameterstatic StringUNITThe unit parameter
-
Constructor Summary
Constructors Constructor Description SDOParameterMap()Constructs an empty instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetDistance()StringgetMask()DoublegetMaxResolution()DoublegetMinResolution()StringgetQueryType()IntegergetSdoBatchSize()IntegergetSdoNumRes()StringgetUnit()booleanisEmpty()Checks whether this instance is emptyvoidremoveDistance()Removes the distance parametervoidremoveMask()Removes the mask parametervoidremoveMaxResolution()Removes the max_resolution parametervoidremoveMinResolution()Removes the min_resolution parametervoidremoveQueryType()Removes the querytype parametervoidremoveSdoBatchSize()Removes the sdo_batch_size parametervoidremoveSdoNumRes()Removes the sdo_num_res parametervoidremoveUnit()Removes the unit parametervoidsetDistance(Double distance)Adds the distance parameter with the specified valuevoidsetMask(String mask)Adds the mask parameter with the specified valuevoidsetMaxResolution(Double res)Adds the max_resolution parameter with the specified valuevoidsetMinResolution(Double res)Adds the min_resolution parameter with the specified valuevoidsetQueryType(String queryType)Adds the querytype parameter with the specified valuevoidsetQueryTypeToFilter()Adds the querytype parameter with value "FILTER"voidsetSdoBatchSize(Integer size)Adds the sdo_batch_size parameter with the specified valuevoidsetSdoNumRes(Integer res)Adds the sdo_num_res parameter with the specified valuevoidsetUnit(String unit)Adds the unit parameter with the specified valueStringtoQuotedString()Returns all parameters contained in this instance as a quoted String containing the<parameter name>=<parameter value>pairs separated by spaces.
-
-
-
Field Detail
-
DISTANCE
public static final String DISTANCE
The distance parameter- See Also:
- Constant Field Values
-
SDO_BATCH_SIZE
public static final String SDO_BATCH_SIZE
The sdo_batch_size parameter- See Also:
- Constant Field Values
-
SDO_NUM_RES
public static final String SDO_NUM_RES
The sdo_num_res parameter- See Also:
- Constant Field Values
-
UNIT
public static final String UNIT
The unit parameter- See Also:
- Constant Field Values
-
MIN_RESOLUTION
public static final String MIN_RESOLUTION
The min_resolution parameter- See Also:
- Constant Field Values
-
MAX_RESOLUTION
public static final String MAX_RESOLUTION
The max_resolution parameter- See Also:
- Constant Field Values
-
MASK
public static final String MASK
The mask parameter- See Also:
- Constant Field Values
-
QUERYTYPE
public static final String QUERYTYPE
The querytype parameter- See Also:
- Constant Field Values
-
-
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
-
-