The Oracle VARRAY and TABLE data types map to the JDBC ARRAY data type. To use these data types as a parameter, an array must be created using the createArray() method of the ExtConnection interface. See JDBC Extensions in the DataDirect Connect Series for JDBC Reference for more information about this method.
Note: The Oracle driver does not support using the VARRAY and TABLE data types with Oracle index-by tables, also known as associative arrays.If you want more accurate metadata information for either of these data types, set the CatalogOptions connection property to 8, but be aware that this can negatively affect performance. See the description of CatalogOptions in Connection Properties for details.This example selects two columns, reads them into separate arrays, and retrieves the objects from the arrays.This example constructs two separate arrays and inserts the array objects into their respective columns.java.sql.Array colVarray = ((com.ddtek.jdbc.extensions.ExtConnection)connection).createArray(java.sql.Array colTable = ((com.ddtek.jdbc.extensions.ExtConnection)connection).createArray(
| © 2012 Progress Software Corporation and/or its subsidiaries or affiliates. |