| Summary: | DBWS: need to handle processing simple, PL/SQL and Advanced JDBC args in a single code path | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | David McCann <david.mccann> |
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | michael.norman |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Attachments: | |||
|
Description
David McCann
Created attachment 207612 [details]
Proposed fix to combine tow buildProcedureOperation methods into a single one.
This patch contains the first part of the fix for this issue. Two buildProcedureOperation methods have been merged into a single one. It uses a flag to indicate that the procedure(s) being processed are complex vs. simple - executing the various blocks of code accordingly.
A number of strings have also been replaced with statics in OracleHelper and Util.
Created attachment 207623 [details]
Proposed fix to combine two buildProcedureOperation methods into a single one.
Version #2. Removed code that unnecessarily iterated over args and created two lists - one for procs with complex args, one for procs with simple args.
whew, that's a big diff! But it looks good Fix part# 1 checked in to revision 10473 Reviewed by: michael.norman@oracle.com Tests: all unit tests pass as expected Created attachment 207663 [details]
Proposed fix to combine two buildQueryForProcedureType methods into a single one.
This fix combines buildQueryForPLSQLProcedureType and buildQueryForAdvancedJDBCProcedureType into a single method. The code makes use of a flag that indicates whether the stored procedure has one or more PL/SQL arguments in order to execute the correct code blocks.
Created attachment 207666 [details]
Proposed fix to combine two buildQueryForProcedureType methods into a single one version 2.
Renamed the boolean from 'flag' to 'hasComplexArgs'
Fix part #2 checked into revision 10477 - combined query building logic into a single method Reviewed by: michael.norman@oracle.com Tests: all unit tests pass as expected Query operation and call generation code has been modded to handle both PL/SQL and Advanced JDBC types in the same codepath. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |