O'Reilly logo

Database Programming with JDBC & Java, Second Edition by George Reese

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

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 ...

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