com.niggle.data
Interface DataListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
InMemoryIndex, CrudeDataPersister, JDBCBackedRecordSet

public interface DataListener
extends java.util.EventListener

The interface implemented by objects that listen to data-related events thrown by instances of com.niggle.data.MutableDataSource.

Author:
Jonathan Revusky

Method Summary
 void recordDeleted(DataEvent event)
          invoked when the RecordManager whose events we are listening to has just deleted a record.
 void recordInserted(DataEvent event)
          invoked when the RecordManager whose events we are listening to has just inserted a new record.
 void recordUpdated(DataEvent event)
          invoked when the RecordManager whose events we are listening to has just updated an existing record.
 

Method Detail

recordInserted

public void recordInserted(DataEvent event)
                    throws java.io.IOException
invoked when the RecordManager whose events we are listening to has just inserted a new record.

recordDeleted

public void recordDeleted(DataEvent event)
                   throws java.io.IOException
invoked when the RecordManager whose events we are listening to has just deleted a record.

recordUpdated

public void recordUpdated(DataEvent event)
                   throws java.io.IOException
invoked when the RecordManager whose events we are listening to has just updated an existing record.