Interface java.sql.ArrayLocator
- public interface ArrayLocator
JDBC 2.0
An ArrayLocator is a transaction duration reference to an array in the
DBMS server.
Method Summary
|
Object[]
|
getArray()
Retrieve from the database the SQL Array
* designated by the locator.
|
Object[]
|
getArray(Map map)
Retrieve from the database the SQL Array designated by
the locator.
|
SQLType
|
getBaseType()
Return the SQL type of elements of the array designated by
* this locator.
|
ResultSet
|
getResultSet()
Materialize the item designated by the locator as a ResultSet
that returns a "row" for each element of the array, in which
the single "column" of that "row" contains that array element.
|
ResultSet
|
getResultSet(Map map)
Materialize the item designated by the locator as a ResultSet
that returns a "row" for each element of the array, in which
the single "column" of that "row" contains that array element.
|
getBaseType
public SQLType getBaseType()
- Return the SQL type of elements of the array designated by
* this locator.
getArray
public Object[] getArray()
- Retrieve from the database the SQL Array
* designated by the locator.
Use the type-map associated with the connection
* for customizations of the type-mappings.
- Returns:
- an array containing the ordered elements of
* the SQL Array designated by the locator.
getArray
public Object[] getArray(Map map)
- Retrieve from the database the SQL Array designated by
the locator. Use the given @map for type-map customizations.
- Parameters:
map
- contains mapping of SQL user-defined types to
* classes
- Returns:
- an array containing the ordered elements of
* the SQL Array
designated by the locator.
getResultSet
public ResultSet getResultSet()
- Materialize the item designated by the locator as a ResultSet
that returns a "row" for each element of the array, in which
the single "column" of that "row" contains that array element.
The rows are ordered in ascending order of the array-element
indexes.
- Returns:
- a result set containing the elements of the array
getResultSet
public ResultSet getResultSet(Map map)
- Materialize the item designated by the locator as a ResultSet
that returns a "row" for each element of the array, in which
the single "column" of that "row" contains that array element.
The rows are ordered in ascending order of the array-element
indexes.
Use the given @map for type-map customizations.
- Parameters:
map
- contains mapping of SQL user-defined types to
* classes
- Returns:
- a result set containing the elements of the array
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.