This content has been marked as final. Show 1 reply
You can achieve the hierarchical tree structure you're looking for by using Secondary Indices. I will be providing you with the detailed documentation and examples on this, you let me know if you have any questions.
Class SecondaryIndex: http://docs.oracle.com/cd/E17277_02/html/java/com/sleepycat/persist/SecondaryIndex.html
Secondary Keys (Using Secondaries with the DPL): http://docs.oracle.com/cd/E17277_02/html/GettingStartedGuide/applicationoverview.html#secondary
Working with Indices: http://docs.oracle.com/cd/E17277_02/html/GettingStartedGuide/persist_index.html
The DPL examples are in examples/persist. For secondaries examples you can check EventExampleDPL.java, PersonExample.java, DataAccessor.java.
Please note that since you are using the DPL you never have to provide a transactional handle when opening an index, be it a primary or a secondary. However, if transactions are enabled for your store, then all of the indexes that you open will be enabled for transactional usage. Moreover, any write operation performed using that index will be done using a transaction, regardless of whether you explicitly provide a transactional handle to the write operation. If you do not explicitly provide a transaction handle to DPL write operations performed on a transactional store, then auto commit is silently used for that operation.