| EventExample is a trivial example which stores Java objects that represent
an event. Events are primarily indexed by a timestamp, but have other
attributes, such as price, account reps, customer name and quantity.
Some of those other attributes are indexed.
The example simply shows the creation of a JE environment and database,
inserting some events, and retrieving the events.
This example is meant to be paired with its twin, EventExampleDPL.java.
EventExample.java and EventExampleDPL.java perform the same functionality,
but use the Base API and the Direct Persistence Layer api, respectively.
This may be a useful way to compare the two apis.
To run the example:
cd jehome/examples
javac je/EventExample.java
java -cp "../lib/je.jar;." je.EventExample -h
|