Name

Array

Synopsis

Interface Name: java.sql.Array

Superclass: None

Immediate Subclasses: None

Interfaces Implemented: None

Availability: New as of JDK 1.2

Description

Array represents a SQL3 array object. The default duration of a reference to a SQL array is for the life of the transaction in which it was created.

All classes and interfaces of the JDBC Core API

Figure 11-1. All classes and interfaces of the JDBC Core API

Class Summary

public interface Array {
    Object getArray( ) throws SQLException;
    Object getArray(Map map) throws SQLException;
    Object getArray(long index, int count) 
        throws SQLException;
    Object getArray(long index, int count, Map map)
        throws SQLException;
    int getBaseType( ) throws SQLException;
    String getBaseTypeName( ) throws SQLException;
    ResultSet getResultSet( ) throws SQLException;
    ResultSet getResultSet(Map map) throws SQLException;
    ResultSet getResultSet(long index, int count)
        throws SQLException;
    ResultSet getResultSet(long index, int count, 
                           Map map) throws SQLException
}

Object Methods

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
Description

This method retrieves the contents of this SQL array into a Java language array or, instead, into the Java type specified by a provided Map. If a map is specified but no match ...

Get Database Programming with JDBC & Java, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.