Associating a Java project with a different database

You can change the database that your pureQuery application works with.

Before you begin

You must create the connection to the database that you want to switch to. In the Data Source Explorer, right-click the Database Connections folder, select New, and follow the steps in the New Connection wizard.

About this task

When you add support for pureQuery to a Java project, you associate the project with the database that you want your application to work with. You can associate the project with different databases if you need to.

Procedure

To associate a Java project with a different database:

  1. In the Package Explorer, right-click the project and select Properties.
  2. In the Properties window, select Database Connection.
  3. In the Connection name field, select the different database connection.
  4. Click OK.

Results

You must rebuild your Java project before the workbench can validate SQL statements against the new database.


Feedback