public class IfxArray
extends java.lang.Object
implements java.sql.Array
SQL arrays are mapped to the Array interface. By default, an Array is a transaction duration reference to an SQL array.
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
java.lang.Object |
getArray()
Retrieve the contents of the SQL array designated by the object.
|
java.lang.Object |
getArray(long index,
int count)
Like getArray() above, but returns an array containing a
slice of the SQL array, beginning with the given @index and
containing up to @count successive elements of the SQL array.
|
java.lang.Object |
getArray(long index,
int count,
java.util.Map map)
Like getArray() above, but returns an array containing a
slice of the SQL array, beginning with the given @index and
containing up to @count successive elements of the SQL array.
|
java.lang.Object |
getArray(java.util.Map map)
Retrieve the contents of the SQL array designated by this
object.
|
int |
getBaseType()
Determine the code, from java.sql.Types, of the type of
the elements of the array.
|
java.lang.String |
getBaseTypeName()
Return the fully qualified SQL (Informix) name of the elements of
this array.
|
java.sql.ResultSet |
getResultSet()
Materialize the item designated by the Array as a ResultSet
that contains a row for each element of the Array.
|
java.sql.ResultSet |
getResultSet(long index,
int count)
Materialize the designated sub-array as a ResultSet
that contains a row for each element of the sub-array.
|
java.sql.ResultSet |
getResultSet(long index,
int count,
java.util.Map map)
Materialize the designated sub-array as a ResultSet
that contains a row for each element of the sub-array.
|
java.sql.ResultSet |
getResultSet(java.util.Map map)
Materialize the item designated by the Array as a ResultSet
that contains a row for each element of the Array.
|
public java.lang.String getBaseTypeName()
throws java.sql.SQLException
getBaseTypeName in interface java.sql.Arrayjava.sql.SQLExceptionpublic int getBaseType()
throws java.sql.SQLException
getBaseType in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.lang.Object getArray()
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.lang.Object getArray(java.util.Map map)
throws java.sql.SQLException
getArray in interface java.sql.Arraymap - contains mapping of SQL type names to Java classesjava.sql.SQLExceptionpublic java.lang.Object getArray(long index,
int count)
throws java.sql.SQLException
getArray in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.lang.Object getArray(long index,
int count,
java.util.Map map)
throws java.sql.SQLException
getArray in interface java.sql.Arraymap - contains mapping of SQL user-defined types to classesjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet()
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet(java.util.Map map)
throws java.sql.SQLException
getResultSet in interface java.sql.Arraymap - contains mapping of SQL user-defined types to
classesjava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet(long index,
int count)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayindex - the index of the first element to retrievecount - the number of successive SQL array elements to retrievejava.sql.SQLExceptionpublic java.sql.ResultSet getResultSet(long index,
int count,
java.util.Map map)
throws java.sql.SQLException
getResultSet in interface java.sql.Arrayindex - the index of the first element to retrievecount - the number of successive SQL array elements to retrievemap - contains mapping of SQL user-defined types to
classesjava.sql.SQLExceptionpublic void free()
throws java.sql.SQLException
free in interface java.sql.Arrayjava.sql.SQLException