Build 1.0_r1(from source)

java.sql
Interface Array


public interface Array

A Java representation of the SQL ARRAY type.


Method Summary
 Object getArray()
          Retrieves the contents of the SQL ARRAY value as a Java array object.
 Object getArray(long index, int count)
          Returns part of the SQL ARRAY associated with this Array, starting at a particular index and comprising up to count successive elements of the SQL array.
 Object getArray(long index, int count, Map<String,Class<?>> map)
          Returns part of the SQL ARRAY associated with this Array, starting at a particular index and comprising up to count successive elements of the SQL array.
 Object getArray(Map<String,Class<?>> map)
          Returns the SQL ARRAY associated with this Array.
 int getBaseType()
          Returns the JDBC type of the entries in this Array's associated array.
 String getBaseTypeName()
          Returns the SQL type name of the entries in the array associated with this Array.
 ResultSet getResultSet()
          Returns a ResultSet object which holds the entries of the SQL ARRAY associated with this Array.
 ResultSet getResultSet(long index, int count)
          Returns a ResultSet object that holds the entries of a subarray, beginning at a particular index and comprising up to count successive entries.
 ResultSet getResultSet(long index, int count, Map<String,Class<?>> map)
          Returns a ResultSet object that holds the entries of a subarray, beginning at a particular index and comprising up to count successive entries.
 ResultSet getResultSet(Map<String,Class<?>> map)
          Returns a ResultSet object which holds the entries of the SQL ARRAY associated with this Array.
 

Method Detail

getArray

Object getArray()
                throws SQLException
Retrieves the contents of the SQL ARRAY value as a Java array object.

Returns:
A Java array containing the elements of this Array
Throws:
SQLException

getArray

Object getArray(long index,
                int count)
                throws SQLException
Returns part of the SQL ARRAY associated with this Array, starting at a particular index and comprising up to count successive elements of the SQL array.

Parameters:
index -
count -
Returns:
A Java array containing the subportion of elements of this Array
Throws:
SQLException

getArray

Object getArray(long index,
                int count,
                Map<String,Class<?>> map)
                throws SQLException
Returns part of the SQL ARRAY associated with this Array, starting at a particular index and comprising up to count successive elements of the SQL array.

Parameters:
index -
count -
map -
Returns:
A Java array containing the subportion of elements of this Array
Throws:
SQLException

getArray

Object getArray(Map<String,Class<?>> map)
                throws SQLException
Returns the SQL ARRAY associated with this Array.

Parameters:
map -
Returns:
A Java array containing the elements of this Array
Throws:
SQLException

getBaseType

int getBaseType()
                throws SQLException
Returns the JDBC type of the entries in this Array's associated array.

Returns:
An integer constant from the java.sql.Types class
Throws:
SQLException

getBaseTypeName

String getBaseTypeName()
                       throws SQLException
Returns the SQL type name of the entries in the array associated with this Array.

Returns:
The database specific name or a fully-qualified SQL type name.
Throws:
SQLException

getResultSet

ResultSet getResultSet()
                       throws SQLException
Returns a ResultSet object which holds the entries of the SQL ARRAY associated with this Array.

Returns:
the ResultSet
Throws:
SQLException

getResultSet

ResultSet getResultSet(long index,
                       int count)
                       throws SQLException
Returns a ResultSet object that holds the entries of a subarray, beginning at a particular index and comprising up to count successive entries.

Parameters:
index -
count -
Returns:
the ResultSet
Throws:
SQLException

getResultSet

ResultSet getResultSet(long index,
                       int count,
                       Map<String,Class<?>> map)
                       throws SQLException
Returns a ResultSet object that holds the entries of a subarray, beginning at a particular index and comprising up to count successive entries.

Parameters:
index -
count -
map -
Returns:
the ResultSet
Throws:
SQLException

getResultSet

ResultSet getResultSet(Map<String,Class<?>> map)
                       throws SQLException
Returns a ResultSet object which holds the entries of the SQL ARRAY associated with this Array.

Parameters:
map -
Returns:
the ResultSet
Throws:
SQLException

Build 1.0_r1(from source)

Please submit a feedback, bug or feature