ch.elca.el4j.services.persistence.generic.dao
Interface DaoChangeNotifier

All Known Implementing Classes:
DefaultDaoChangeNotifier

public interface DaoChangeNotifier

Notifies registered observers of DAO changes. The notifications sent are consistent.

Author:
Adrian Moos (AMS)
File-location:
DaoChangeNotifier
Last check-in date:
2009-08-04 14:25:40 +0200 (Di, 04. Aug 2009) by swismer for revision 3874

Nested Class Summary
static class DaoChangeNotifier.Change
          Sent if something in this DAO view may have changed.
static class DaoChangeNotifier.EntityChange
          Something about DaoChangeNotifier.EntityChange.m_changee may have changed.
static class DaoChangeNotifier.EntityDeleted
          The DaoChangeNotifier.EntityChange.m_changee has been deleted.
static class DaoChangeNotifier.EntityInserted
          The DaoChangeNotifier.EntityChange.m_changee has been inserted.
static class DaoChangeNotifier.EntityStateChanged
          The DaoChangeNotifier.EntityChange.m_changee's state has changed.
static class DaoChangeNotifier.NewEntityState
          The DaoChangeNotifier.EntityChange.m_changee has new state.
 
Field Summary
static DaoChangeNotifier.Change FUZZY_CHANGE
          A fuzzy change object so callers do not have to construct their own.
 
Method Summary
 void announce(DaoChangeNotifier.Change change)
          Announces change to all subscribed observers.
 void subscribe(DaoChangeListener cl)
          Causes cl to receive future change notifications.
 void unsubscribe(DaoChangeListener cl)
          Causes cl to no longer receive future change notifications.
 

Field Detail

FUZZY_CHANGE

static final DaoChangeNotifier.Change FUZZY_CHANGE
A fuzzy change object so callers do not have to construct their own.

Method Detail

subscribe

void subscribe(DaoChangeListener cl)
Causes cl to receive future change notifications.

Parameters:
cl - The DaoChangeListener to subscribe

unsubscribe

void unsubscribe(DaoChangeListener cl)
Causes cl to no longer receive future change notifications.

Parameters:
cl - The DaoChangeListener to unsubscribe

announce

void announce(DaoChangeNotifier.Change change)
Announces change to all subscribed observers.

Parameters:
change - The change to announce


Copyright © 2005-2011 ELCA. All Rights Reserved.