org.palo.api.persistence
Interface PersistenceObserver

All Known Implementing Classes:
PersistenceObserverAdapter

public interface PersistenceObserver

A PersistenceObserver is used to monitor the loading and saving of persistence palo objects like Subsets and CubeViews. Currently the API tries to load or save a persistence palo object completely and calls one of the defined callback methods afterwards.

Version:
$Id: PersistenceObserver.html,v 1.15 2009/07/09 11:01:47 ArndHouben Exp $

Method Summary
 void loadComplete(java.lang.Object source)
          Called when the palo object could be loaded successfully
 void loadFailed(java.lang.String sourceId, PersistenceError[] errors)
          Called when the loading of the palo object failed
 void loadIncomplete(java.lang.Object source, PersistenceError[] errors)
          Called when the palo object could not be loaded completely.
 void saveComplete(java.lang.Object source)
          Called when the saving of the given palo object was successful
 void saveFailed(java.lang.Object source, PersistenceError[] errors)
          Called when the saving of the given palo object failed
 void saveIncomplete(java.lang.Object source, PersistenceError[] errors)
          Called when the palo object could not be saved completely
 

Method Detail

loadFailed

void loadFailed(java.lang.String sourceId,
                PersistenceError[] errors)
Called when the loading of the palo object failed

Parameters:
sourceId - the id of failed palo object
errors - additional information about the reasons

loadIncomplete

void loadIncomplete(java.lang.Object source,
                    PersistenceError[] errors)
Called when the palo object could not be loaded completely.

Parameters:
source - an instance of the loaded palo object
errors - additional information about the reasons

loadComplete

void loadComplete(java.lang.Object source)
Called when the palo object could be loaded successfully

Parameters:
source - instance of loaded palo object

saveFailed

void saveFailed(java.lang.Object source,
                PersistenceError[] errors)
Called when the saving of the given palo object failed

Parameters:
source - palo object which could not be saved
errors - additional information about the reasons

saveIncomplete

void saveIncomplete(java.lang.Object source,
                    PersistenceError[] errors)
Called when the palo object could not be saved completely

Parameters:
source - palo object which could not be completely saved
errors - additional information about the reasons

saveComplete

void saveComplete(java.lang.Object source)
Called when the saving of the given palo object was successful

Parameters:
source - palo object which was saved