Package oracle.jdbc
Interface OracleArray
- 
- All Superinterfaces:
- Array
 - All Known Implementing Classes:
- ARRAY
 
 public interface OracleArray extends Array This interface defines the Oracle extensions to the standard JDBC interfaceArray.Generally any new code should avoid the direct use of the class ARRAY. For variable declarations use the interfaceArrayor this interface as required. For creating aOracleArrayuseOracleConnection.createOracleArray(java.lang.String, java.lang.Object).- Since:
- 11.2.0.3.0
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description double[]getDoubleArray()Oracle extension.double[]getDoubleArray(long index, int count)Oracle extension.float[]getFloatArray()Oracle extension.float[]getFloatArray(long index, int count)Oracle extension.int[]getIntArray()Oracle extension.int[]getIntArray(long index, int count)Oracle extension.Map<?,?>getJavaMap()Analogous to getArray except that it returns indices and elements of the SQL associative array as java.util.Map.long[]getLongArray()Oracle extension.long[]getLongArray(long index, int count)Oracle extension.OracleTypeMetaDatagetOracleMetaData()Oracle extension.short[]getShortArray()Oracle extension.short[]getShortArray(long index, int count)StringgetSQLTypeName()Oracle extension.intlength()Oracle extension.ObjecttoJdbc()Oracle extension.- 
Methods inherited from interface java.sql.Arrayfree, getArray, getArray, getArray, getArray, getBaseType, getBaseTypeName, getResultSet, getResultSet, getResultSet, getResultSet
 
- 
 
- 
- 
- 
Method Detail- 
getOracleMetaDataOracleTypeMetaData getOracleMetaData() throws SQLException Oracle extension. Get the SQL ARRAY type metadata for the type of this object.- Returns:
- metadata for this object's type
- Throws:
- SQLException- if an error occurs
 
 - 
lengthint length() throws SQLExceptionOracle extension. Get array size.- Returns:
- the number of elements in the array.
- Throws:
- SQLException
 
 - 
getSQLTypeNameString getSQLTypeName() throws SQLException Oracle extension. Retrieves the SQL type name of the SQL structured type that thisStructobject represents.- Returns:
- the fully-qualified type name of the SQL collection
    type for which this Arrayobject is the generic representation
- Throws:
- SQLException- if a database access error occurs
 
 - 
toJdbcObject toJdbc() throws SQLException Oracle extension. Returns the JDBC representation of the datum object- Returns:
- an object containing the JDBC value
- Throws:
- SQLException- if conversion to JDBC representation results in an error
 
 - 
getIntArrayint[] getIntArray() throws SQLExceptionOracle extension. Analogous to getArray except that it always returns a int[].- Returns:
- an array of int.
- Throws:
- SQLException
 
 - 
getIntArrayint[] getIntArray(long index, int count) throws SQLExceptionOracle extension. Like getIntArray, but returns a slice.- Parameters:
- index- the index of the first element to be returned
- count- the number of elements to be returned.
- Returns:
- an array containing count elements starting at index
- Throws:
- SQLException
 
 - 
getDoubleArraydouble[] getDoubleArray() throws SQLExceptionOracle extension. Analogous to getArray except that it always returns a double[].- Returns:
- an array of double.
- Throws:
- SQLException
 
 - 
getDoubleArraydouble[] getDoubleArray(long index, int count) throws SQLExceptionOracle extension. Like getDoubleArray, but returns a slice.- Parameters:
- index- the index of the first element to be returned
- count- the number of elements to be returned.
- Returns:
- an array containing count elements starting at index
- Throws:
- SQLException
 
 - 
getShortArrayshort[] getShortArray() throws SQLExceptionOracle extension. Analogous to getArray except that it always returns a short[].- Returns:
- an array of short.
- Throws:
- SQLException
 
 - 
getShortArrayshort[] getShortArray(long index, int count) throws SQLException- Throws:
- SQLException
 
 - 
getLongArraylong[] getLongArray() throws SQLExceptionOracle extension. Analogous to getArray except that it always returns a long[].- Returns:
- an array of long.
- Throws:
- SQLException
 
 - 
getLongArraylong[] getLongArray(long index, int count) throws SQLExceptionOracle extension. Like getLongArray, but returns a slice.- Parameters:
- index- the index of the first element to be returned
- count- the number of elements to be returned.
- Returns:
- an array containing count elements starting at index
- Throws:
- SQLException
 
 - 
getFloatArrayfloat[] getFloatArray() throws SQLExceptionOracle extension. Analogous to getArray except that it always returns a float[].- Returns:
- an array of float.
- Throws:
- SQLException
 
 - 
getFloatArrayfloat[] getFloatArray(long index, int count) throws SQLExceptionOracle extension. Like getFloatArray, but returns a slice.- Parameters:
- index- the index of the first element to be returned
- count- the number of elements to be returned.
- Returns:
- an array containing count elements starting at index
- Throws:
- SQLException
 
 - 
getJavaMapMap<?,?> getJavaMap() throws SQLException Analogous to getArray except that it returns indices and elements of the SQL associative array as java.util.Map. For non SQL associative array types (such as VARRAY or NESTED TABLE) this method returns null.- Returns:
- a Map containing indices and elements of the SQL associative array
- Throws:
- SQLException
 
 
- 
 
-