O'Reilly logo

Oracle Data Integrator 11g Cookbook by Peter C. Boyd-Bowman, Denis Gray, Christophe Dupupet, Julien Testut

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Java for condition code generation

If we really want code generation to be flexible, we need to have the ability to choose what code is generated based on external elements. This means that at code generation time, we need to have the ability to chose among different portions of code. If we were to write pure Java code, an If statement would give us exactly what we are looking for. So our approach will be just this: take advantage of the fact that we can execute Java code to control code generation and always generate the proper code as needed.

Getting ready

For this recipe, we will reuse the KM that was created in the previous recipe. If you did not follow the necessary steps to create the KM, you will need to perform steps 1 through 6 of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required