Quantcast
Channel: Toad Extension for Eclipse
Viewing all articles
Browse latest Browse all 978

Blog Post: Perform Impact Analysis across Database and Java Objects

$
0
0
There are many tools that can infer dependencies between database objects. There are also many tools that can tell you dependencies between application development objects. However, there is only one that shows BOTH (yes, I know that’s considered shouting) Database and Application code dependencies in such an easy and concise manner. To set the stage, I need to rename a table named ‘T_MOVIE’. I know this will have a significant impact on both the Database and some dependent Java files. The depth to which both will be impacted is the challenge that we will address. In previous blog posts, I shared instructions for configuring Toad Extension for Eclipse on Windows and Mac . I also provided a quick ‘as needed basis’ overview of the Eclipse Java Perspective and Toad Extension for Eclipse Perspective. With that background, we can continue… First, I make sure that my Java Perspective and Toad Extension for Eclipse Perspectives in the Eclipse Workbench are associated. To do that I first switch to the Java Perspective, Right click the Package that contains Java files that are referenced by database objects and select ‘Add Toad Extension Nature’ Right click on the same Java Package (Test in this example) and in the context menu choose Toad Extension | Connect Now specify the Oracle connection that the Java code in this package (Test) contains references to: Cool, setup done, lets move on to the whole reason for this post! Switch back to the Database Perspective, the right click table on the table we want to rename ‘T_MOVIE’ and choose Rename: Now, check the option to ‘Refactor related objects’, modify the object name as needed and then click Next: Success! I now see a list of items that would be impacted by this change including but not limited to Views, Procedures, Functions, Triggers and ….wait for it! Java Application Files: This by itself is already valuable, I can use this as an ad hoc ‘Impact Analysis’ report. The additional value is that I can now select impacted items (here I’ve chosen Function ‘F_GET_AVG_VOTES’) and the delta between the Original and Refactored version of the same: …I can do the same for Java application code: Pretty Cool! If you’d like detailed instructions on how to create a similar proof of concept, let me know, I’ll send you them, there’re not that complex, but would have muddied the content for this post (That said, if there’s enough demand I’ll provide a deeper dive into precisely how to reproduce this use case in a future post if warranted). In the meantime, give it a try with your own code and let us know how it’s going!

Viewing all articles
Browse latest Browse all 978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>