- Installations
You may skip this part if you are using Eclipse 3.7 (Indigo) or above, as they are pre-installed.
- Eclipse DTP (Data Tools Platform)
Figure 1: Install Data Tools Platform
- Apache Derby Download the latest Derby version from the Apache website http://db.apache.org/derby/. Choose the binary distribution.
- Eclipse DTP (Data Tools Platform)
- Configurations
- Establish a connection to an embedded Derby.
Define the driver for the Derby access.
Go to Window-> Preferences and select "Data Management" -> Connectivity -> Driver Definition. Press Add. Select Derby and the version you want to use. If your Derby version is not listed selected the highest number displayed.
Figure 2: New Driver Definition
- Establish a connection to an embedded Derby.
Define the driver for the Derby access.
- Implementation
- Create a Data Development Project.
- Invoke the "New Project" wizard from the menu "File -> "New" -> "Project...". In the "New Project" wizard, select "Data Development Project".
Figure 3: Create a Data Development Project - In the "New Data Development Project" wizard, input a Project Name. Click the "Next" button.
Figure 4: Data Development Project wizard - Project Name - Click the "New" button to create a new connection.
Figure 5: Select Connection - In the "New Connection" wizard, select "Embedded Derby JDBC Driver" as the JDBC driver. Click the "Next" button.
Figure 6: Connection Parameters - Click the "Next" button.
Figure 7 - A new database connection is created.
Figure 8: New database connection created - In the "Default Application Process Setting" dialog, check the option "Omit default schema in generated statements".
Figure 9: Default Application Process Settings - Note that a Database Development Project is created.
Figure 10: Database Development Project
- Invoke the "New Project" wizard from the menu "File -> "New" -> "Project...". In the "New Project" wizard, select "Data Development Project".
- Create a Data Development Project.
Wednesday, March 13, 2013
Using Apache Derby in Eclipse
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment