Package org.dbunit.ext.oracle
Class OracleSdoElemInfoArray
java.lang.Object
org.dbunit.ext.oracle.OracleSdoElemInfoArray
- All Implemented Interfaces:
oracle.jdbc.internal.ObjectData,oracle.jdbc.internal.ObjectDataFactory,oracle.sql.ORAData,oracle.sql.ORADataFactory
public class OracleSdoElemInfoArray
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Oracle SQL type name backing this array,MDSYS.SDO_ELEM_INFO_ARRAY.static final intThe Oracle JDBC type code backing this array,OracleTypes.ARRAY. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructs an array wrapping the given elements. -
Method Summary
Modifier and TypeMethodDescriptionoracle.sql.ORADatacreate(oracle.sql.Datum d, int sqlType) booleangetArray()Returns the array's elements.getArray(long index, int count) Returns a range of the array's elements.intReturns the JDBC type code of the array's base element type.Returns the SQL type name of the array's base element type.oracle.sql.ArrayDescriptorReturns the descriptor of the underlying Oracle array.getElement(long index) Returns a single element of the array.static oracle.sql.ORADataFactoryReturns the sharedORADataFactoryfor this class.inthashCode()intlength()Returns the number of elements in the array.voidsetArray(BigDecimal[] a) Replaces the array's elements.voidsetArray(BigDecimal[] a, long index) Replaces a range of the array's elements starting at the given index.voidsetElement(BigDecimal a, long index) Replaces a single element of the array.oracle.sql.DatumtoString()
-
Field Details
-
_SQL_NAME
The Oracle SQL type name backing this array,MDSYS.SDO_ELEM_INFO_ARRAY.- See Also:
-
_SQL_TYPECODE
public static final int _SQL_TYPECODEThe Oracle JDBC type code backing this array,OracleTypes.ARRAY.- See Also:
-
-
Constructor Details
-
OracleSdoElemInfoArray
public OracleSdoElemInfoArray()Default constructor. -
OracleSdoElemInfoArray
Constructs an array wrapping the given elements.- Parameters:
a- the element values.
-
-
Method Details
-
getORADataFactory
public static oracle.sql.ORADataFactory getORADataFactory()Returns the sharedORADataFactoryfor this class.- Returns:
- the shared
ORADataFactoryfor this class.
-
toDatum
- Specified by:
toDatumin interfaceoracle.sql.ORAData- Throws:
SQLException
-
create
- Specified by:
createin interfaceoracle.sql.ORADataFactory- Throws:
SQLException
-
length
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
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
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
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
Returns the array's elements.- Returns:
- the array's elements.
- Throws:
SQLException- if the underlying array cannot be read.
-
getArray
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
Replaces the array's elements.- Parameters:
a- the new element values.- Throws:
SQLException- if the underlying array cannot be written.
-
setArray
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
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
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
-
equals
-
hashCode
public int hashCode()
-