ObjectDB for Java/JDO Demo Instructions for JCreator
|
|
|
The JDO Directory demo has been tested with JCreator LE version 2.50.
JCreator can be downloaded from:
http://www.jcreator.com.
Make sure that in JDK Profiles in the Configurate => Options...
dialog, j2sdk 1.4 or above is specified.
Open the Workspace
Open the jdo-directory.jcw workspace file, by either double clicking on the workspace file or by File => Open Workspace... from the IDE menu.
Set the ObjectDB Library
Open the Project Settings dialog
(Project => Project Settings... in the menu).
In that dialog select the Required Libraries tab and press the New...
button.
In the Set Library dialog, specify ObjectDB as the library name, and use
the Add => Add Archive... command to add jdo.jar and ObjectDB jar
file (odbfe.jar / odbse.jar / odbee.jar) located in the ObjectDB lib
directory.
After closing the Set Library dialog, with OK, check the checkbox
in the new line added to the Required Libraries list, and then close the
Project Settings dialog with OK.
Creating the library is a one time operation, but selecting it is required in
every project which uses ObjectDB and JDO.
Build & Run
After setting the ObjectDB library, compile all the demo source files using
Build => Compile Project.
The Build => Execute Project command will run step 4 (the visual manager).
To run the other steps use the Execute Project tool in the toolbar.
Step 1
This step creates a new ObjectDB database and stores an initial object graph
using JDO.
The expected output is:
The [ObjectDB Enhancer] message, indicating "on the fly" JDO enhancement of four
persistence capable classes, is not shown if these classes are already
enhanced.
Step 2
This step uses JDO to create, update and delete an object.
Eventualy, the database content remains the same after these operations.
This step creates, updates and deletes an object:
The expected output is:
Step 3
This step retrieves objects from the database using JDO extents and queries,
without modifying the database.
The expected output is:
Step 4
The final step opens the visual manager window.
|