|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.prevdb.test.TestSystemStore
A mock object implementation of SystemStore
for testing.
Field Summary | |
(package private) Map |
classFieldMapListMap
|
protected org.apache.log4j.Logger |
log
|
(package private) List |
savedTransactions
|
Constructor Summary | |
(package private) |
TestSystemStore()
|
Method Summary | |
(package private) Transaction |
getLastSavedTransaction()
|
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.log4j.Logger log
List savedTransactions
Map classFieldMapListMap
Constructor Detail |
TestSystemStore()
Method Detail |
Transaction getLastSavedTransaction()
public void load(Loader loader) throws DataException
SystemStore
Persistent
objects at startup.
load
in interface SystemStore
loader
- the callback interface for the SystemStore
to load objects.
DataException
public void snapshot(Loader loader)
SystemStore
snapshot
in interface SystemStore
loader
- the callback interface for the SystemStore
to save objects.public void saveTransaction(Transaction tran)
SystemStore
Transaction
saveTransaction
in interface SystemStore
tran
- the Transaction
to savepublic void shutdown(Loader loader)
SystemStore
shutdown
in interface SystemStore
loader
- the callback interface for the SystemStore
to save objects.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |