Class SDOParameterMap
- java.lang.Object
-
- org.hibernate.spatial.dialect.oracle.criterion.SDOParameterMap
-
public class SDOParameterMap extends java.lang.ObjectRepresents the parameters that can be passed into Oracle's Spatial operators
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDISTANCEThe distance parameterstatic java.lang.StringMASKThe mask parameterstatic java.lang.StringMAX_RESOLUTIONThe max_resolution parameterstatic java.lang.StringMIN_RESOLUTIONThe min_resolution parameterstatic java.lang.StringQUERYTYPEThe querytype parameterstatic java.lang.StringSDO_BATCH_SIZEThe sdo_batch_size parameterstatic java.lang.StringSDO_NUM_RESThe sdo_num_res parameterstatic java.lang.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 java.lang.DoublegetDistance()java.lang.StringgetMask()java.lang.DoublegetMaxResolution()java.lang.DoublegetMinResolution()java.lang.StringgetQueryType()java.lang.IntegergetSdoBatchSize()java.lang.IntegergetSdoNumRes()java.lang.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(java.lang.Double distance)Adds the distance parameter with the specified valuevoidsetMask(java.lang.String mask)Adds the mask parameter with the specified valuevoidsetMaxResolution(java.lang.Double res)Adds the max_resolution parameter with the specified valuevoidsetMinResolution(java.lang.Double res)Adds the min_resolution parameter with the specified valuevoidsetQueryType(java.lang.String queryType)Adds the querytype parameter with the specified valuevoidsetQueryTypeToFilter()Adds the querytype parameter with value "FILTER"voidsetSdoBatchSize(java.lang.Integer size)Adds the sdo_batch_size parameter with the specified valuevoidsetSdoNumRes(java.lang.Integer res)Adds the sdo_num_res parameter with the specified valuevoidsetUnit(java.lang.String unit)Adds the unit parameter with the specified valuejava.lang.StringtoQuotedString()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 java.lang.String DISTANCE
The distance parameter- See Also:
- Constant Field Values
-
SDO_BATCH_SIZE
public static final java.lang.String SDO_BATCH_SIZE
The sdo_batch_size parameter- See Also:
- Constant Field Values
-
SDO_NUM_RES
public static final java.lang.String SDO_NUM_RES
The sdo_num_res parameter- See Also:
- Constant Field Values
-
UNIT
public static final java.lang.String UNIT
The unit parameter- See Also:
- Constant Field Values
-
MIN_RESOLUTION
public static final java.lang.String MIN_RESOLUTION
The min_resolution parameter- See Also:
- Constant Field Values
-
MAX_RESOLUTION
public static final java.lang.String MAX_RESOLUTION
The max_resolution parameter- See Also:
- Constant Field Values
-
MASK
public static final java.lang.String MASK
The mask parameter- See Also:
- Constant Field Values
-
QUERYTYPE
public static final java.lang.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 java.lang.Double getDistance()
-
setDistance
public void setDistance(java.lang.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 java.lang.Integer getSdoBatchSize()
-
setSdoBatchSize
public void setSdoBatchSize(java.lang.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 java.lang.Integer getSdoNumRes()
-
setSdoNumRes
public void setSdoNumRes(java.lang.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 java.lang.String getUnit()
-
setUnit
public void setUnit(java.lang.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 java.lang.Double getMaxResolution()
-
setMaxResolution
public void setMaxResolution(java.lang.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 java.lang.Double getMinResolution()
-
setMinResolution
public void setMinResolution(java.lang.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 java.lang.String getMask()
-
setMask
public void setMask(java.lang.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 java.lang.String getQueryType()
-
setQueryType
public void setQueryType(java.lang.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 java.lang.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
-
-