public interface Array
Mapping relationship of SQL type ARRAY in java programming language. By default, the Array value is a transaction-period reference to the SQL ARRAY value. By default, the Array object is implemented internally using SQL LOCATOR(array), which means that the Array object contains a logical pointer to the data in the SQL ARRAY value, rather than the data containing the ARRAY value. The Array interface provides methods to pass data of SQL ARRAY values to the client as an array or ResultSet object. If the elements of the SQL ARRAY are a UDT, they can be custom mapped. To create a custom mapping, the programmer must do two things:
Create a class that implements the SQLData interface for the UDT that will be custom mapped.
Generates an entry in the type map containing
The fully qualified SQL type name of the UDT The Class object of the class that implements SQLData
When a type map table with entries corresponding to primitive types is provided to the getArray and getResultSet methods, the table contains mappings that are used to map elements of ARRAY values. If no typemap is provided (which is usually the case), the connection's typemap is used by default. If the connection's type map or the type map provided for a method does not have an entry for a basic type, the elements are mapped according to the standard mapping.