EventExampleDPL 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 BDB environment and database, inserting some events, and retrieving the events using the Direct Persistence layer.
This example is meant to be paired with its twin, EventExample.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:
javac EventExampleDPL.java java EventExampleDPL -h