|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--interbase.interclient.Array
Represents an SQL 3 Array. By default, an Array is a transaction duration reference to an SQL array. By default, an Array is implemented using an SQL LOCATOR(array) internally.
Method Summary | |
Object |
getArray()
Retrieve the contents of this SQL array as a Java array object. |
Object |
getArray(long index,
int count)
Gets a Java array object containing a slice of this SQL array. |
Object |
getArray(long index,
int count,
Map map)
Gets a Java array object containing a slice of this SQL array using a type-map customization. |
Object |
getArray(Map map)
Retrieve the contents of this SQL array as a Java array object using type-map customization. |
int |
getBaseType()
Determine the SQL type of the elements of the array. |
String |
getBaseTypeName()
Return the fully qualified SQL type name of the elements of this array. |
ResultSet |
getResultSet()
Materialize the items designated by this Array as a ResultSet that contains a row for each element of the Array. |
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. |
ResultSet |
getResultSet(long index,
int count,
Map map)
Materialize the designated sub-array as a ResultSet that contains a row for each element of the sub-array. |
ResultSet |
getResultSet(Map map)
Materialize the items designated by this Array as a ResultSet that contains a row for each element of the Array. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public String getBaseTypeName() throws SQLException
public int getBaseType() throws SQLException
public Object getArray() throws SQLException
Conceptually, this method calls getObject()
on each element of the
array and returns a Java array containing the result. Except when
the array element type maps to a Java primitive type, such as int,
boolean, etc. In this case, an array of primitive type values,
i.e. an array of int, is returned, not an array of Integer. This
exception for primitive types should improve performance as well as
usability.
public Object getArray(Map map) throws SQLException
map
for type-map customizations.
Conceptually, this method calls getObject()
on each element of the
array and returns a Java array containing the result. Except when
the array element type maps to a Java primitive type, such as int,
boolean, etc. In this case, an array of primitive type values,
i.e. an array of int, is returned, not an array of Integer. This
exception for primitive types should improve performance as well as
usability.
map
- contains mapping of SQL type names to Java classespublic Object getArray(long index, int count) throws SQLException
index
and
contains up to count
successive elements of the SQL array.
Use the type-map associated with the connection for customizations
of the type-mappings.index
- the array-index of the first element to retrievecount
- the number of successive SQL array elements to retrievecount
elements of the
SQL array, beginning with element index
.public Object getArray(long index, int count, Map map) throws SQLException
index
and
contains up to count
successive elements of the SQL array.
Use the given map
for type-map customizations.index
- the array-index of the first element to retrievecount
- the number of successive SQL array elements to retrievemap
- contains mapping of SQL user-defined types to classescount
elements of the
SQL array, beginning with element index
.public ResultSet getResultSet() throws SQLException
public ResultSet getResultSet(Map map) throws SQLException
map
for
type-map customizations.map
- contains mapping of SQL user-defined types to classespublic ResultSet getResultSet(long index, int count) throws SQLException
index
- the index of the first element to retrievecount
- the number of successive SQL array elements to retrievepublic ResultSet getResultSet(long index, int count, Map map) throws SQLException
map
for
type-map customizations.index
- 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 classes
|
1.50.39 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |