Creating an SQLJ file
You can create a new SQLJ file by using the New SQLJ File wizard.
Using the wizard, you can do the following actions:
- Name the file and specify its package and source folder.
- Specify advanced project properties such as additional JAR files to add to the project's classpath, translation options, and whether to use long package names.
- Select an existing SQL SELECT statement, or construct and test a new one.
- Specify information for connecting to the database at run time.
To create an SQLJ file using the wizard:
- Click File > New > Other, or click the New toolbar button.
- In the New window, expand the Data folder, and then expand the SQLJ folder to show the available SQLJ choices. If you do not see the SQLJ folder under the Data folder, select the Show All Wizards check box.
- Click SQLJ File, and then click Next.
- If you selected the Show All Wizards check box in step 2, click OK in the Confirm Enablement window.
- Complete the wizard steps.
The SQLJ file is created and added to your project. If the project does not already have SQLJ support, the wizard adds it to the project automatically.
Parent topic
Developing SQLJ applications
Related concepts
Building SQLJ-enabled Java projects
Related tasks
Adding SQLJ support to Java projects
Removing SQLJ support from Java projects
Creating and implementing Java Emitter Templates for the New SQLJ File wizard
Related reference
SQLJ statement syntax
SQLJ File page
Advanced Project Properties page
Select existing SQL statement page
Specify Runtime Database Connection Information page