Beans are useful for passing input values to annotated or inline methods for querying or updating the database objects that the beans are based on.
If you choose to generate this interface, the workbench also generates an implementation of the interface during a build of the Java project.
If you choose not to generate the test class, you can do so at a later time by right-clicking the bean and selecting
. This option also regenerates the related interface and the implementation of that interface.If you want to use inline methods, you can choose to generate a test class that contains inline methods for querying and updating the database object that the generated bean is based on. When you run the class, the results are displayed in the Console view. If you choose not to generate the test class, you can do so at a later time by right-clicking the bean and selecting .
To generate code from a single table, alias, view, or MQT:
If you did not already add pureQuery support to your Java project, after you click Finish the workbench creates the folder pureQueryFolder in your Java project.
If you are using DB2® for z/OS®, or DB2 for Linux, UNIX, or Windows, this folder contains the files Default.genProps and Default.bindProps. You use these files if you plan to run SQL statements statically from applications that use annotated methods.