org.palo.api.persistence
Class PersistenceObserverAdapter

java.lang.Object
  extended by org.palo.api.persistence.PersistenceObserverAdapter
All Implemented Interfaces:
PersistenceObserver

public class PersistenceObserverAdapter
extends java.lang.Object
implements PersistenceObserver

A PersistenceObserverAdapter provides empty method implementations for the PersistenceObserver interface.

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

Constructor Summary
PersistenceObserverAdapter()
           
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceObserverAdapter

public PersistenceObserverAdapter()
Method Detail

loadComplete

public void loadComplete(java.lang.Object source)
Description copied from interface: PersistenceObserver
Called when the palo object could be loaded successfully

Specified by:
loadComplete in interface PersistenceObserver
Parameters:
source - instance of loaded palo object

loadFailed

public void loadFailed(java.lang.String sourceId,
                       PersistenceError[] errors)
Description copied from interface: PersistenceObserver
Called when the loading of the palo object failed

Specified by:
loadFailed in interface PersistenceObserver
Parameters:
sourceId - the id of failed palo object
errors - additional information about the reasons

loadIncomplete

public void loadIncomplete(java.lang.Object source,
                           PersistenceError[] errors)
Description copied from interface: PersistenceObserver
Called when the palo object could not be loaded completely.

Specified by:
loadIncomplete in interface PersistenceObserver
Parameters:
source - an instance of the loaded palo object
errors - additional information about the reasons

saveComplete

public void saveComplete(java.lang.Object source)
Description copied from interface: PersistenceObserver
Called when the saving of the given palo object was successful

Specified by:
saveComplete in interface PersistenceObserver
Parameters:
source - palo object which was saved

saveFailed

public void saveFailed(java.lang.Object source,
                       PersistenceError[] errors)
Description copied from interface: PersistenceObserver
Called when the saving of the given palo object failed

Specified by:
saveFailed in interface PersistenceObserver
Parameters:
source - palo object which could not be saved
errors - additional information about the reasons

saveIncomplete

public void saveIncomplete(java.lang.Object source,
                           PersistenceError[] errors)
Description copied from interface: PersistenceObserver
Called when the palo object could not be saved completely

Specified by:
saveIncomplete in interface PersistenceObserver
Parameters:
source - palo object which could not be completely saved
errors - additional information about the reasons