com.ashridgetech.prevdb.store
Interface SystemStore

All Known Implementing Classes:
TestSystemStore

public interface SystemStore

Provides a way for the PrevDb to load and save persistent objects, and transactions. The PrevDb provides the SystemStore with a Loader as a callback interface, so that each implementation can save and load objects in the most efficient way.


Method Summary
 void load(Loader loader)
          Load all the Persistent objects at startup.
 void saveTransaction(Transaction tran)
          Save a Transaction
 void shutdown(Loader loader)
          Perform the actions needed when the system is shutting down, which may include saving a snapshot of all the objects.
 void snapshot(Loader loader)
          Take a snapshot of all the persistent objects during running, if required.
 

Method Detail

load

public void load(Loader loader)
          throws DataException
Load all the Persistent objects at startup.

Parameters:
loader - the callback interface for the SystemStore to load objects.
DataException

snapshot

public void snapshot(Loader loader)
Take a snapshot of all the persistent objects during running, if required. May be ignored by some implementations.

Parameters:
loader - the callback interface for the SystemStore to save objects.

saveTransaction

public void saveTransaction(Transaction tran)
Save a Transaction

Parameters:
tran - the Transaction to save

shutdown

public void shutdown(Loader loader)
Perform the actions needed when the system is shutting down, which may include saving a snapshot of all the objects.

Parameters:
loader - the callback interface for the SystemStore to save objects.


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.