Advanced PL/SQL integration with ADF (new API)
JDev: 12.2.1.3.0 Source: GitHub Till ADF 11g, we have been integrating ADF with PL-SQL modules having user-defined types with "oracle.sql" packages. We have used oracle.sql.StructDescriptor and oracle.sql.ArrayDescriptor to create implementations of user-defined types on Oracle database. Since the migration to 12c, we have been getting a warning that most of oracle.sql 's APIs have been deprecated. Deprecated code The new solution is to use java.sql.Struct (not STRUCT) and java.sql.Array (not ARRAY). However, using the Array API has been made a bit tricky. Now we do not have the support of ArrayDescriptor to create a definition object for the user-defined type. Let us see how exactly we go about it. This is the use case we will solve: 1) Call a packaged procedure with a user-defined type as IN parameter. 2) Modify the object and return as an OUT parameter of a user-defined type. 3) Intercept the out parameter in ADF and r...