Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

oracle.adfnmc.java.sql
Interface Struct


public interface Struct

An interface which provides facilities for mapping an SQL structured type to Java. The Struct object has a value for each attribute of the SQL structured type


Method Summary
 java.lang.Object[] getAttributes()
          Gets the values of the attributes of this SQL structured type.
 java.lang.Object[] getAttributes(Map theMap)
          Gets the values of the attributes of this SQL structured type.
 java.lang.String getSQLTypeName()
          Gets the SQL Type name of the SQL structured type that this Struct represents
 

Method Detail

getSQLTypeName

java.lang.String getSQLTypeName()
                                throws SQLException
Gets the SQL Type name of the SQL structured type that this Struct represents

Returns:
the fully qualified name of SQL structured type
Throws:
SQLException - if a database error occurs

getAttributes

java.lang.Object[] getAttributes()
                                 throws SQLException
Gets the values of the attributes of this SQL structured type. This method uses the type map associated with the Connection for customized type mappings. Where there is no entry in the Type Map which matches the this structured type, the JDBC driver uses the standard mapping.

Returns:
an Object array containing the attributes, in order
Throws:
SQLException - if a database error occurs

getAttributes

java.lang.Object[] getAttributes(Map theMap)
                                 throws SQLException
Gets the values of the attributes of this SQL structured type. This method uses the supplied type map for customized type mappings. Where there is no entry in the Type Map which matches the this structured type, the JDBC driver uses the default mapping. The Connection type map is never utilized by this method.

Parameters:
theMap - a Map describing how SQL Type names are mapped to classes.
Returns:
an Object array containing the attributes, in order
Throws:
SQLException - if a database error occurs

Oracle Fusion Middleware Java API Reference for Oracle ADF Mobile Client
11g Release 1 (11.1.1)

E17503-02

Copyright © 2011, Oracle and/or its affiliates. All rights reserved.