is new.
public interface Struct
The standard mapping in the Java programming language for an SQL structured type. A Struct object contains a value for each attribute of the SQL structured type that it represents. By default, an instance ofStruct is valid as long as the application has a reference to it.
All methods on the Struct interface must be fully implemented if the JDBC driver supports the data type.
| Method Summary | |
|---|---|
| Object [] |
getAttributes
() Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. |
| Object [] |
getAttributes
(
Map
<
String
,
Class
<?>> map) Produces the ordered values of the attributes of the SQL structured type that this Struct object represents. |
| String |
getSQLTypeName
() Retrieves the SQL type name of the SQL structured type that this Struct object represents. |
| Method Detail |
|---|
String getSQLTypeName()
throws SQLException
SQLFeatureNotSupportedException
- if the JDBC driver does not support this method
Since:
1.2
Object[] getAttributes()
throws SQLException
Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result.
SQLFeatureNotSupportedException
- if the JDBC driver does not support this method
Since:
1.2
Object[] getAttributes(Map<String,Class<?>> map)
throws SQLException
Conceptually, this method calls the method getObject on each attribute of the structured type and returns a Java array containing the result.
SQLFeatureNotSupportedException
- if the JDBC driver does not support this method
Since:
1.2