ObjectDB - Object Database for Java Home | About Us | Customers | Free Download | Purchase
 
  <Back to Main Menu>   
 
 
JDO Directory Demo
Demo Home

Source Code
directory.Utilities
directory.pc.*
directory.step1.*
directory.step2.*
directory.step3.*
directory.step4.*

J2SDK Instructions
J2SDK on Windows
J2SDK on Unix

IDE Instructions
Borland JBuilder
IBM Eclipse
NetBeans / Forte /
Sun One Studio
JCreator
 



 

ObjectDB for Java/JDO Demo
Instructions for JCreator

     JDO Directory

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.

JDO JCreator

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.

JDO JCreator

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.

JDO JCreator

Step 1
This step creates a new ObjectDB database and stores an initial object graph using JDO.

The expected output is:

JDO JCreator

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:

JDO JCreator

Step 3
This step retrieves objects from the database using JDO extents and queries, without modifying the database.

The expected output is:

JDO JCreator

Step 4
The final step opens the visual manager window.

JDO Directory Swing/JFC Application Screenshot





Copyright 2001-2007 ObjectDB Software. All rights reserved.