org.salespointframework.core.data.events
Interface DatasourceChangeListener

All Known Subinterfaces:
Catalog<T>, CatalogChangeListener<T>, CountingStock<T,CT>, Currency<T>, ListenableCatalog<T>, ListenableStock<T,CT>, MoneyBag, Stock<T,CT>, StockChangeListener<T,CT>, StoringStock<T,CT>, UserDataListener
All Known Implementing Classes:
AbstractCurrency, AbstractStockFilter, CatalogChangeAdapter, CatalogFilter, CatalogImpl, CatalogListModel, CatalogTableModel, CountingStockFilter, CountingStockImpl, CountingStockListModel, CountingStockTableModel, CurrencyFilter, CurrencyImpl, EUROCurrencyImpl, MoneyBagFilter, MoneyBagImpl, PersistentList, PersistentMap, StockChangeAdapter, StockImpl, StoringStockFilter, StoringStockImpl, StoringStockListModel, StoringStockTableModel, UserComboBoxModel, UserDataAdapter, UserListModel, UserManager, UserManagerFilter, UserTableModel

public interface DatasourceChangeListener

This listener notifies whenever the datasource changes. this usually should cause every cache to invalidate itself and reload all data from new datasource. PersistentMap and PersistentList attach automatically to PersistenceManager.addDatasourceChangedListener(DatasourceChangeListener) and will pump the event up to their hosts. e.g. a Catalog

Since:
4.0
Author:
Thomas Kissinger

Method Summary
 void DatasourceChanged(boolean pumpUp)
          indicates a change of datasource.
 

Method Detail

DatasourceChanged

void DatasourceChanged(boolean pumpUp)
indicates a change of datasource.

Parameters:
pumpUp - true if the event should be pumped up to hosts, because this event is mostly triggered twice. first time to invalidate caches. second time for load new data