org.sourceforge.jemm
Class MemoryStore

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

public class MemoryStore
extends AbstractStore

A MemoryStore uses a MemoryDatabase to store object data in the local JVM heap but using the JEMM model of auto updated values. The following code shows how to register the MemoryStore such that it will store all objects that have been enhanced: MemoryStore myStore = new MemoryStore(); Session.setStore(myStore); One your program has finished running call the following: Session.shutdown();

Author:
Paul Keeble
See Also:
Session

Field Summary
 
Fields inherited from class org.sourceforge.jemm.AbstractStore
db, listener
 
Constructor Summary
MemoryStore()
           
MemoryStore(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

MemoryStore

public MemoryStore()

MemoryStore

public MemoryStore(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.