Package oracle.spatial.network
Class SDODimArray
- java.lang.Object
-
- oracle.spatial.network.SDODimArray
-
public class SDODimArray extends java.lang.ObjectThis class defines a Java representation for Oracle Spatial SDO_DIM_ARRAY object. An SDO_DIM_ARRAY is an array of SDO_DIM_ELEMENT which has the following attributes: SDO_DIMNAME, SDO_LB,SDO_UB, and SDO_TOLERANCE.
-
-
Constructor Summary
Constructors Constructor Description SDODimArray(int noOfDims, double lowerBound, double upperBound, double tolerance)Constructs an SDODimArray object with the default dimension names ("X","Y","Z","M") and the given lower bounds, upper bounds ,and tolerances.SDODimArray(java.lang.String[] names, double[] lowerBounds, double[] upperBounds, double[] tolerances)Constructs an SDODimArray object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDimName(int index)Returns the specified dimension name.doublegetLowerBound(int index)Returns the specified lower bound.intgetNoOfDims()Returns the number of dimensions.doublegetTolerance(int index)Returns the specified tolerancedoublegetUpperBound(int index)Returns the specified upper bound.java.lang.StringtoSQLString()Returns a SQL string for constructing a database SDO_DIM_ARRAY objectjava.lang.StringtoString()
-
-
-
Constructor Detail
-
SDODimArray
public SDODimArray(java.lang.String[] names, double[] lowerBounds, double[] upperBounds, double[] tolerances)Constructs an SDODimArray object.- Parameters:
names- the dimension nameslowerBounds- the lower bounds for each dimensionupperBounds- the upper bounds for each dimensiontolerances- the tolerances for each dimension
-
SDODimArray
public SDODimArray(int noOfDims, double lowerBound, double upperBound, double tolerance)Constructs an SDODimArray object with the default dimension names ("X","Y","Z","M") and the given lower bounds, upper bounds ,and tolerances.- Parameters:
noOfDims- the number of dimensionslowerBound- the lower bound for each dimensionupperBound- the upper bound for each dimensiontolerance- the tolerance for each dimension
-
-
Method Detail
-
getNoOfDims
public int getNoOfDims()
Returns the number of dimensions.
-
getDimName
public java.lang.String getDimName(int index)
Returns the specified dimension name.
-
getUpperBound
public double getUpperBound(int index)
Returns the specified upper bound.
-
getLowerBound
public double getLowerBound(int index)
Returns the specified lower bound.
-
getTolerance
public double getTolerance(int index)
Returns the specified tolerance
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toSQLString
public java.lang.String toSQLString()
Returns a SQL string for constructing a database SDO_DIM_ARRAY object
-
-