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.
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.