The SQLData interface
The Java™ class for the named row must implement the SQLData interface. The class must have a member for each element in the named row but can have other members in addition to these. The members can be in any order and need not be public.
The Java™ class must implement the writeSQL(), readSQL(), and getSQLTypeName() methods for the named row as defined in the SQLData interface, but can implement additional methods. You can use the ClassGenerator utility to create the class; for more information, see The ClassGenerator utility.
To link this Java™ class with the named row, create a customized type mapping using the Connection.setTypeMap() method or the getObject() method. For more information about type mapping, see Mapping data types.
You cannot use the SQLData interface to access unnamed rows.