You must configure your Java projects
to support the development of applications that use the pureQuery
API. You can add this support explicitly or you can add it implicitly
when you first generate code from a database object or SQL statement.
This topic describes how to add this support explicitly.
Procedure
To add support for pureQuery to a Java project:
- Right-click your Java project
and select Data Access Development > Add
pureQuery Support. If you previously added
support for Data Access Development, some of the fields in the wizard
are not active.
- Follow the instructions in the wizard. For information
about the controls on the wizard, click
in the lower-left corner
of the wizard. If the help does not appear, select a control on the Add
pureQuery Support page and then click
again.
Results
After you click Finish, the workbench
creates the folder dataAccessFolder 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.
Removing pureQuery
support: If you want to remove the support for pureQuery from
a Java project, right-click
the project and select
Data Access Development
>
Remove pureQuery Support.
- If you perform a Clean action on the project by selecting Project > Clean,
the workbench does not delete any implementation classes that might
exist in your project.
- If you modify an interface and save the changes, the workbench
deletes the corresponding implementation class.