Class OracleSdoOrdinateArray

java.lang.Object
org.dbunit.ext.oracle.OracleSdoOrdinateArray
All Implemented Interfaces:
oracle.jdbc.internal.ObjectData, oracle.jdbc.internal.ObjectDataFactory, oracle.sql.ORAData, oracle.sql.ORADataFactory

public class OracleSdoOrdinateArray extends Object implements oracle.sql.ORAData, oracle.sql.ORADataFactory
This class was generated by oracle jpub.
Since:
?
Version:
$Revision$ $Date$
Author:
clucas@e-miles.com, Last changed by: $Author$
See Also:
  • Field Details

    • _SQL_NAME

      public static final String _SQL_NAME
      The Oracle SQL type name backing this array, MDSYS.SDO_ORDINATE_ARRAY.
      See Also:
    • _SQL_TYPECODE

      public static final int _SQL_TYPECODE
      The Oracle JDBC type code backing this array, OracleTypes.ARRAY.
      See Also:
  • Constructor Details

    • OracleSdoOrdinateArray

      public OracleSdoOrdinateArray()
      Default constructor.
    • OracleSdoOrdinateArray

      public OracleSdoOrdinateArray(BigDecimal[] a)
      Constructs an array wrapping the given elements.
      Parameters:
      a - the element values.
  • Method Details

    • getORADataFactory

      public static oracle.sql.ORADataFactory getORADataFactory()
      Returns the shared ORADataFactory for this class.
      Returns:
      the shared ORADataFactory for this class.
    • toDatum

      public oracle.sql.Datum toDatum(Connection c) throws SQLException
      Specified by:
      toDatum in interface oracle.sql.ORAData
      Throws:
      SQLException
    • create

      public oracle.sql.ORAData create(oracle.sql.Datum d, int sqlType) throws SQLException
      Specified by:
      create in interface oracle.sql.ORADataFactory
      Throws:
      SQLException
    • length

      public int length() throws SQLException
      Returns the number of elements in the array.
      Returns:
      the number of elements in the array.
      Throws:
      SQLException - if the underlying array cannot be read.
    • getBaseType

      public int getBaseType() throws SQLException
      Returns the JDBC type code of the array's base element type.
      Returns:
      the JDBC type code of the array's base element type.
      Throws:
      SQLException - if the underlying array cannot be read.
    • getBaseTypeName

      public String getBaseTypeName() throws SQLException
      Returns the SQL type name of the array's base element type.
      Returns:
      the SQL type name of the array's base element type.
      Throws:
      SQLException - if the underlying array cannot be read.
    • getDescriptor

      public oracle.sql.ArrayDescriptor getDescriptor() throws SQLException
      Returns the descriptor of the underlying Oracle array.
      Returns:
      the descriptor of the underlying Oracle array.
      Throws:
      SQLException - if the underlying array cannot be read.
    • getArray

      public BigDecimal[] getArray() throws SQLException
      Returns the array's elements.
      Returns:
      the array's elements.
      Throws:
      SQLException - if the underlying array cannot be read.
    • getArray

      public BigDecimal[] getArray(long index, int count) throws SQLException
      Returns a range of the array's elements.
      Parameters:
      index - the index of the first element to return.
      count - the number of elements to return.
      Returns:
      the requested range of the array's elements.
      Throws:
      SQLException - if the underlying array cannot be read.
    • setArray

      public void setArray(BigDecimal[] a) throws SQLException
      Replaces the array's elements.
      Parameters:
      a - the new element values.
      Throws:
      SQLException - if the underlying array cannot be written.
    • setArray

      public void setArray(BigDecimal[] a, long index) throws SQLException
      Replaces a range of the array's elements starting at the given index.
      Parameters:
      a - the new element values.
      index - the index of the first element to replace.
      Throws:
      SQLException - if the underlying array cannot be written.
    • getElement

      public BigDecimal getElement(long index) throws SQLException
      Returns a single element of the array.
      Parameters:
      index - the index of the element to return.
      Returns:
      the element at the given index.
      Throws:
      SQLException - if the underlying array cannot be read.
    • setElement

      public void setElement(BigDecimal a, long index) throws SQLException
      Replaces a single element of the array.
      Parameters:
      a - the new element value.
      index - the index of the element to replace.
      Throws:
      SQLException - if the underlying array cannot be written.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object