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

Struct

Synopsis

Interface Name: java.sql.Struct

Superclass: None

Immediate Subclasses: None

Interfaces Implemented: None

Availability: New as of JDK 1.2

Description

This class maps to a SQL3 structured type. An Struct instance has values that map to each of the attributes in its associated structured value in the database.

Class Summary

public interface Struct {
    Object[] getAttributes( ) throws SQLException;
    Object[] getAttributes(Map map) throws SQLException;
    String getSQLTypeName( ) throws SQLException;
}

Object Methods

getAttributes( )

public Object[] getAttributes( ) throws SQLException
public Object[] getAttributes(Map map) throws SQLException
Description

This method provides the values for the attributes in the SQL structured type in order. If you pass a type map, it will use that type map to construct the Java values.

getSQLTypeName( )

public String getSQLTypeName( ) throws SQLException
Description

This method provides the SQL type name for this structured type.

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