org.sourceforge.jemm
Class RemoteStore
java.lang.Object
org.sourceforge.jemm.AbstractStore
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
Constructor Summary |
RemoteStore(java.lang.String hostname,
int port)
|
RemoteStore(java.lang.String hostname,
int port,
boolean debug)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostname
protected final java.lang.String hostname
port
protected final int port
remoteDB
protected RemoteDatabase remoteDB
RemoteStore
public RemoteStore(java.lang.String hostname,
int port)
RemoteStore
public RemoteStore(java.lang.String hostname,
int port,
boolean debug)
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.