Interface Struct

public interface Struct

The Struct interface is used to map SQL structured types in Java. This object contains a value for each element of the SQL structured type.

Methods

getAttributes

public Object[] getAttributes() throws SQLException

This returns an array of objects that are the elements of the SQL structured type contained in the struct object. The type map of the current connection or the standard mapping if none is available is used for type mapping.

Returns: The array containing the attribute values. A SQLException is thrown if an error occurs while accessing these values.

getAttributes

public Object[] getAttributes(java.util.Map map) throws SQLException

This returns an array of objects that are the elements of the SQL structured type contained in the struct object. The type map provided as a parameter or the standard mapping if no mapping is available for a given type is used for type mapping.

Parameters:

map:

The mapping of SQL type names to Java classes

Returns: The array containing the attribute values. A SQLException is thrown if an error occurs while accessing these values.

getSQLTypeName

public String getSQLTypeName() throws SQLException 

This gets the name of the SQL type of the SQL structured type for the struct object.

Returns: The type name of the SQL structured type. A SQLException is thrown if an error occurs while accessing this value.



JDBC 3. 0. JAVA Database Connectivity
JDBC 3: Java Database Connectivity
ISBN: 0764548751
EAN: 2147483647
Year: 2002
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net