Home | Previous Page | Next Page   Working With Informix Types >

Named and Unnamed Rows

The Sun Microsystem JDBC specification refers to an SQL type called a structured type or struct, which is equivalent to an Informix named row. The specification defines two approaches to exchange structured-type data between a Java client and a relational database:

Whether IBM Informix JDBC Driver instantiates a Java object or a Struct object for a fetched named row depends on whether there is a customized type-mapping entry or not, as follows:

Unnamed rows are always fetched into Struct objects.

Important:
Regardless of whether you use the SQLData or Struct interface, if a named or unnamed row contains an opaque data type column, there must be a type-mapping entry for it. If you are using the Struct interface to access a row that contains an opaque data type column, you need a customized type map for the opaque data type column, but not for the row as a whole.

For more information about custom type mapping, see Appendix C. Mapping Data Types.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]