public interface Array
ARRAY type.| Modifier and Type | Method and Description |
|---|---|
void |
free()
Frees any resources held by this array.
|
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 data from the underlying SQL
ARRAY as a Java array. |
int |
getBaseType()
Returns the JDBC type of the entries in this array's underlying
SQL array.
|
String |
getBaseTypeName()
Returns the SQL type name of the entries in this array's underlying
SQL 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. |
Object getArray() throws SQLException
ARRAY value as a Java array
object.SQLException - if there is a database error.Object getArray(long index, int count) throws SQLException
ARRAY associated with this array,
starting at a particular index and comprising up to count
successive elements of the SQL array.index - the start position in the array where the values are
retrieved.count - the number of elements to retrieve.SQLException - if there is a database error.Object getArray(long index, int count, Map<String,Class<?>> map) throws SQLException
ARRAY associated with this array,
starting at a particular index and comprising up to count
successive elements of the SQL array.index - the start position in the array where the values are
retrieved.count - the number of elements to retrieve.map - the map defining the correspondence between SQL type names
and Java types.SQLException - if there is a database error.Object getArray(Map<String,Class<?>> map) throws SQLException
ARRAY as a Java array.map - the map defining the correspondence between SQL type names
and Java types.SQLException - if there is a database error.int getBaseType()
throws SQLException
java.sql.Types classSQLException - if there is a database error.String getBaseTypeName() throws SQLException
SQLException - if there is a database error.ResultSet getResultSet() throws SQLException
ARRAY associated with this array.ResultSet.SQLException - if there is a database error.ResultSet getResultSet(long index, int count) throws SQLException
ResultSet object that holds the entries of a subarray,
beginning at a particular index and comprising up to count
successive entries.index - the start position in the array where the values are
retrieved.count - the number of elements to retrieve.ResultSet.SQLException - if there is a database error.ResultSet getResultSet(long index, int count, Map<String,Class<?>> map) throws SQLException
ResultSet object that holds the entries of a subarray,
beginning at a particular index and comprising up to count
successive entries.index - the start position in the array where the values are
retrieved.count - the number of elements to retrieve.map - the map defining the correspondence between SQL type names
and Java types.ResultSet the array's custom type values. if a
database error has occurred.SQLException - if there is a database error.ResultSet getResultSet(Map<String,Class<?>> map) throws SQLException
ResultSet object which holds the entries of the SQL
ARRAY associated with this array.map - the map defining the correspondence between SQL type names
and Java types.ResultSet.SQLException - if there is a database error.void free() throws SQLException
free is called, calling
method other than free will throw SQLException (calling free
repeatedly will do nothing).SQLException