public class SpatialParameters
extends java.lang.Object
When providing the parameter string through setParams or the constructor none of the other values will be used. Instead the string as provided will be used.
Creating an instance of SpatialParameters without configuring it and passing it into the SpatialExpressionFactory call is equivalent to passing in null. The resulting SQL will have NULL writen out for the parameters argument to the spatial operator.
Modifier and Type | Class and Description |
---|---|
static class |
SpatialParameters.Mask |
static class |
SpatialParameters.QueryType |
static class |
SpatialParameters.Units |
Constructor and Description |
---|
SpatialParameters() |
SpatialParameters(java.lang.String params) |
Modifier and Type | Method and Description |
---|---|
java.lang.Number |
getDistance() |
SpatialParameters.Mask[] |
getMasks() |
java.lang.Number |
getMaxResolution() |
java.lang.Number |
getMinResolution() |
java.lang.String |
getParameterString()
PUBLIC:
build a String describing this set of parameters that can be used in conjunction with an Oracle Spatial function
|
java.lang.String |
getParams() |
SpatialParameters.QueryType |
getQueryType() |
SpatialParameters.Units |
getUnits() |
SpatialParameters |
setDistance(java.lang.Number distance)
PUBLIC:
Set the DISTANCE parameter
|
SpatialParameters |
setMask(SpatialParameters.Mask mask)
PUBLIC:
Set the MASK parameter
|
SpatialParameters |
setMasks(SpatialParameters.Mask[] masks)
PUBLIC:
Set the MASK parameter
|
SpatialParameters |
setMaxResolution(java.lang.Number maxResolution)
PUBLIC:
Set the MAX_RESOLUTION parameter
|
SpatialParameters |
setMinResolution(java.lang.Number minResolution)
PUBLIC:
Set the MIN_RESOLUTION parameter
|
SpatialParameters |
setParams(java.lang.String params)
PUBLIC:
Set the PARAMS (String) value.
|
SpatialParameters |
setQueryType(SpatialParameters.QueryType queryType)
PUBLIC:
Set the QUERY_TYPE parameter
|
SpatialParameters |
setUnits(SpatialParameters.Units units)
PUBLIC:
Set the UNIT parameter
|
public SpatialParameters()
public SpatialParameters(java.lang.String params)
public SpatialParameters setParams(java.lang.String params)
params
- public java.lang.String getParams()
public SpatialParameters setMinResolution(java.lang.Number minResolution)
minResolution
- public java.lang.Number getMinResolution()
public SpatialParameters setMaxResolution(java.lang.Number maxResolution)
maxResolution
- public java.lang.Number getMaxResolution()
public SpatialParameters setUnits(SpatialParameters.Units units)
units
- a value from the SpatialParameters.Units enumpublic SpatialParameters.Units getUnits()
public SpatialParameters setDistance(java.lang.Number distance)
distance
- public java.lang.Number getDistance()
public SpatialParameters setQueryType(SpatialParameters.QueryType queryType)
queryType
- a value from the SpatialParameters.QueryType enumpublic SpatialParameters.QueryType getQueryType()
public SpatialParameters setMasks(SpatialParameters.Mask[] masks)
masks
- an array of values from the SpatialParmeters.Mask enumpublic SpatialParameters setMask(SpatialParameters.Mask mask)
mask
- a value from the SpatialParmeters.Mask enumpublic SpatialParameters.Mask[] getMasks()
public java.lang.String getParameterString()