org.sourceforge.jemm
Class RemoteStore

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

public class RemoteStore
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: RemoteStore myStore = new RemoteStore(); Session.setStore(myStore); One your program has finished running call the following: Session.shutdown();

Author:
Paul Keeble, Rory Graves
See Also:
Session

Field Summary
protected  java.lang.String hostname
           
protected  int port
           
protected  RemoteDatabase remoteDB
           
 
Fields inherited from class org.sourceforge.jemm.AbstractStore
db, listener
 
Constructor Summary
RemoteStore(java.lang.String hostname, int port)
           
RemoteStore(java.lang.String hostname, int port, 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
 

Field Detail

hostname

protected final java.lang.String hostname

port

protected final int port

remoteDB

protected RemoteDatabase remoteDB
Constructor Detail

RemoteStore

public RemoteStore(java.lang.String hostname,
                   int port)

RemoteStore

public RemoteStore(java.lang.String hostname,
                   int port,
                   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.