org.sourceforge.jemm
Class PersistentStore

java.lang.Object
  extended by org.sourceforge.jemm.AbstractStore
      extended by org.sourceforge.jemm.PersistentStore
All Implemented Interfaces:
Store

public class PersistentStore
extends AbstractStore

A PersistentStore uses a BDbDatabase to a local persistent database. The following code shows how to register the PersistentStore such that it will store all objects that have been enhanced: PersistentStore myStore = new PersistentStore(); Session.setStore(myStore); One your program has finished running call the following: Session.shutdown();

Author:
Paul Keeble, Rory Graves
See Also:
Session

Field Summary
 
Fields inherited from class org.sourceforge.jemm.AbstractStore
db, listener
 
Constructor Summary
PersistentStore(java.io.File dataDir)
           
PersistentStore(java.io.File dataDir, boolean debug)
           
 
Method Summary
protected  Database createUnderlyingDatabase()
           
protected  void shutdownUnderlyingDatabase()
           
 
Methods inherited from class org.sourceforge.jemm.AbstractStore
getRoot, initialise, setRoot, setRootIfNull, setup, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentStore

public PersistentStore(java.io.File dataDir)

PersistentStore

public PersistentStore(java.io.File dataDir,
                       boolean debug)
Method Detail

createUnderlyingDatabase

protected Database createUnderlyingDatabase()
Specified by:
createUnderlyingDatabase in class AbstractStore

shutdownUnderlyingDatabase

protected void shutdownUnderlyingDatabase()
Specified by:
shutdownUnderlyingDatabase in class AbstractStore


Copyright © 2009. All Rights Reserved.