Java Platform 1.2
Beta 4

Interface java.sql.Struct


public abstract interface Struct
JDBC 2.0

The Struct interface represents the default mapping for an SQL structured type. By default, the contents of a Struct are materialized when the structured instance is produced. And, by default, an instance of Struct is valid as long as the application has a reference to it.


Method Summary
 Object[] getAttributes()
          Produce the ordered values of the attributes of the SQL    * structured type.
 Object[] getAttributes(Map map)
          Produce the ordered values of the attributes of the SQL structured type.
 String getSQLTypeName()
           
 

Method Detail

getSQLTypeName

public String getSQLTypeName()
                      throws SQLException

getAttributes

public Object[] getAttributes()
                       throws SQLException
Produce the ordered values of the attributes of the SQL    * structured type. Use the type-map associated with the    * connection for customizations of the type-mappings. Conceptually, this method calls getObject() on each attribute of the structured type and returns a Java array containing the result.
Returns:
an array containing the ordered attribute values

getAttributes

public Object[] getAttributes(Map map)
                       throws SQLException
Produce the ordered values of the attributes of the SQL structured type. Use the given @map for type-map    * customizations. Conceptually, this method calls getObject() on each attribute of the structured type and returns a Java array containing the result.
Parameters:
map - contains mapping of SQL type names to Java classes
Returns:
an array containing the ordered attribute values

Java Platform 1.2
Beta 4

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.
This documentation was generated with a post-Beta4 version of Javadoc.