|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.wabit.AbstractWabitListener
public abstract class AbstractWabitListener
Extend this class to add the behaviour to not respond to events when in a transaction. Instead of responding to events while in a transaction the listener will collect the events and then at the end of the transaction act on each event in the order it was received. If a rollback event was received the events will be discarded instead.
| Constructor Summary | |
|---|---|
AbstractWabitListener()
|
|
| Method Summary | |
|---|---|
void |
propertyChange(java.beans.PropertyChangeEvent evt)
|
protected void |
propertyChangeImpl(java.beans.PropertyChangeEvent evt)
Override this method if an action is required when a property change event is acted upon. |
void |
transactionEnded(ca.sqlpower.util.TransactionEvent e)
Signals a transaction has finished. |
protected void |
transactionEndedImpl(ca.sqlpower.util.TransactionEvent e)
Override this method if an action is required when a transaction ends. |
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. |
protected void |
transactionRollbackImpl(ca.sqlpower.util.TransactionEvent e)
Override this method if an action is required when a transaction rolls back. |
void |
transactionStarted(ca.sqlpower.util.TransactionEvent e)
Called when a transaction has started. |
protected void |
transactionStartedImpl(ca.sqlpower.util.TransactionEvent e)
Override this method if an action is required when a transaction starts. |
void |
wabitChildAdded(WabitChildEvent e)
Called when a child is added to an object this listener is attached to. |
protected void |
wabitChildAddedImpl(WabitChildEvent e)
Override this method if an action is required when a child added event is acted upon. |
void |
wabitChildRemoved(WabitChildEvent e)
Called when a child is removed from an object this listener is attached to. |
protected void |
wabitChildRemovedImpl(WabitChildEvent e)
Override this method if an action is required when a child removed event is acted upon. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractWabitListener()
| Method Detail |
|---|
public final void transactionEnded(ca.sqlpower.util.TransactionEvent e)
WabitListener
transactionEnded in interface WabitListenere - Contains the object that has finished a transaction.protected void transactionEndedImpl(ca.sqlpower.util.TransactionEvent e)
public final void transactionRollback(ca.sqlpower.util.TransactionEvent e)
WabitListener
transactionRollback in interface WabitListenere - Contains the object that was rolled back and a message
describing why the transaction was rolled back.protected void transactionRollbackImpl(ca.sqlpower.util.TransactionEvent e)
public final void transactionStarted(ca.sqlpower.util.TransactionEvent e)
WabitListener
transactionStarted in interface WabitListenere - Contains what object started a transaction and a message
describing the transaction.protected void transactionStartedImpl(ca.sqlpower.util.TransactionEvent e)
public final void wabitChildAdded(WabitChildEvent e)
WabitListener
wabitChildAdded in interface WabitListenere - An event describing the child added.protected void wabitChildAddedImpl(WabitChildEvent e)
public final void wabitChildRemoved(WabitChildEvent e)
WabitListener
wabitChildRemoved in interface WabitListenere - An event describing the child removed.protected void wabitChildRemovedImpl(WabitChildEvent e)
public final void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange in interface java.beans.PropertyChangeListenerprotected void propertyChangeImpl(java.beans.PropertyChangeEvent evt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||