O'Reilly logo

Special Edition Using Java™ 2 Enterprise Edition by Mark Wutka

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Interfaces

Array

The Array interface lets you retrieve SQL arrays as Java arrays.

getArray
public Object getArray() throws SQLException
public Object getArray(Map map) throws SQLException
public Object getArray(long index, int count)
    throws SQLException
public Object getArray(long index, int count, Map map)
    throws SQLException

Retrieves the SQL array as a Java array. You can supply an initial index and count to retrieve a portion of the array. You can also supply a Map object that maps SQL type names to Java type names.

getBaseType
public int getBaseType() throws SQLException

Returns the JDBC type (as defined in the JDBC Types class) of the elements contained in the array.

 getBaseTypeName public String getBaseTypeName() throws SQLException ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required