com.ashridgetech.prevdb.store
Interface Loader


public interface Loader

The callback interface which a PrevDb provides to a SystemStore to allow it to load and save objects.


Method Summary
 void applyTransaction(Transaction tran)
          Reapply the effects of a Transaction to the PrevDb.
 Iterator getObjects(Class persistentClass)
          Get an Iterator over a set of FieldMaps for all the objects of a class
 Collection getPersistentClasses()
          Get the collection of persistent object classes.
 void loadObject(FieldMap fieldMap)
          Load a persistent object into the PrevDb.
 

Method Detail

loadObject

public void loadObject(FieldMap fieldMap)
                throws DataException
Load a persistent object into the PrevDb.

Parameters:
fieldMap - the fields of the object to load.
DataException

applyTransaction

public void applyTransaction(Transaction tran)
                      throws DataException
Reapply the effects of a Transaction to the PrevDb.

Parameters:
tran - the Transaction to reapply.
DataException

getPersistentClasses

public Collection getPersistentClasses()
Get the collection of persistent object classes.

Returns:
the collection of classes

getObjects

public Iterator getObjects(Class persistentClass)
Get an Iterator over a set of FieldMaps for all the objects of a class

Parameters:
persistentClass - the class of object to get
Returns:
the Iterator


Copyright © 2003 Ashridge Technologies Ltd. All Rights Reserved.