| Summary: | DBWS: Need to remove instanceof checks in the design time code | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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: | david.mccann, michael.norman | ||||||||||
| Version: | unspecified | ||||||||||||
| Target Milestone: | --- | ||||||||||||
| Hardware: | PC | ||||||||||||
| OS: | Windows XP | ||||||||||||
| Whiteboard: | |||||||||||||
| Attachments: |
|
||||||||||||
|
Description
David McCann
Created attachment 211445 [details]
DBWS Builder changes
Makes use of the new isXXX methods to reduce the number of 'instanceof' checks.
Created attachment 211446 [details]
DDL Parser changes
Added isXXX methods to CompositeDatabaseType (class & interface) for each composite database type.
In addition, isXXX methods were added to ScalarDatabaseType (class and interface) for all of the scalar types.
The number of 'instanceof' checks in the builder package is reduced by 85 (104 down to 19).
There were also a number of small changes where 'instanceof' checks were being performed unnecessarily. Created attachment 211542 [details]
clean instanceof checks
alternate version of previous patch
Created attachment 211543 [details]
clean instanceof checks (2)
alternate version of previous patch
fixed in Oracle DDL Parser (git) and in DBWSBuilder (svn) The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |