Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Struct

public interface Struct

java.sql.Struct


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

Summary

Public methods

abstract Object[] getAttributes()

Gets the values of the attributes of this SQL structured type.

abstract Object[] getAttributes(Map<StringClass<?>> theMap)

Gets the values of the attributes of this SQL structured type.

abstract String getSQLTypeName()

Gets the SQL Type name of the SQL structured type that this Struct represents.

Public methods

getAttributes

Added in API level 1
Object[] getAttributes ()

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 mapping which matches this structured type, the JDBC driver uses the standard mapping.

Returns
Object[] an Object array containing the ordered attributes.
Throws
SQLException if a database error occurs.

getAttributes

Added in API level 1
Object[] getAttributes (Map<StringClass<?>> theMap)

Gets the values of the attributes of this SQL structured type. This method uses the supplied type mapping to determine how to map SQL types to their corresponding Java objects. In the case where there is no entry in the type mapping which matches this structured type, the JDBC driver uses the default mapping. The Connection type map is never utilized by this method.

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

getSQLTypeName

Added in API level 1
String getSQLTypeName ()

Gets the SQL Type name of the SQL structured type that this Struct represents.

Returns
String the fully qualified name of SQL structured type.
Throws
SQLException if a database error occurs.
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.