ca.sqlpower.wabit
Interface WabitListener

All Superinterfaces:
java.util.EventListener, java.beans.PropertyChangeListener
All Known Implementing Classes:
AbstractWabitListener, GroupsListModel, UsersAndGroupsListModel, UsersListModel, WorkspacePersisterListener

public interface WabitListener
extends java.beans.PropertyChangeListener

This listener can be added to any WabitObjects and is notified of property and child changes.


Method Summary
 void transactionEnded(ca.sqlpower.util.TransactionEvent e)
          Signals a transaction has finished.
 void transactionRollback(ca.sqlpower.util.TransactionEvent e)
          Signals a transaction has finished and the events that occurred during the transaction need to be reversed or not acted upon.
 void transactionStarted(ca.sqlpower.util.TransactionEvent e)
          Called when a transaction has started.
 void wabitChildAdded(WabitChildEvent e)
          Called when a child is added to an object this listener is attached to.
 void wabitChildRemoved(WabitChildEvent e)
          Called when a child is removed from an object this listener is attached to.
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Method Detail

wabitChildAdded

void wabitChildAdded(WabitChildEvent e)
Called when a child is added to an object this listener is attached to.

Parameters:
e - An event describing the child added.

wabitChildRemoved

void wabitChildRemoved(WabitChildEvent e)
Called when a child is removed from an object this listener is attached to.

Parameters:
e - An event describing the child removed.

transactionStarted

void transactionStarted(ca.sqlpower.util.TransactionEvent e)
Called when a transaction has started. The events fired after the transaction started until the transaction has ended or rolled back should be considered one atomic operation.

Parameters:
e - Contains what object started a transaction and a message describing the transaction.

transactionEnded

void transactionEnded(ca.sqlpower.util.TransactionEvent e)
Signals a transaction has finished. The events that occurred during the transaction should be considered one atomic operation. By the time the transaction ends in this fashion or immediately after the atomic operation should be acted upon. Some transactions may be nested inside of other transactions. In this case the transaction is finished only when the outer most transaction has completed.

Parameters:
e - Contains the object that has finished a transaction.

transactionRollback

void transactionRollback(ca.sqlpower.util.TransactionEvent e)
Signals a transaction has finished and the events that occurred during the transaction need to be reversed or not acted upon. If a transaction inside of another transaction rolls back both the inner and outer transaction will be rolled back.

Parameters:
e - Contains the object that was rolled back and a message describing why the transaction was rolled back.


Copyright © 2009. All Rights Reserved.