viper.api.extensions
Interface TransactionalNode.Transaction

Enclosing interface:
TransactionalNode

public static interface TransactionalNode.Transaction

An object that keeps state information about a transaction in progress.


Method Summary
 void commit()
          Commits the current changes.
 boolean isAlive()
          Tests to see if the transaction is still active.
 void putProperty(java.lang.String property, java.lang.Object value)
          Adds the given property to the event that will be thrown.
 void rollback()
          Rolls back the transaction.
 ViperChangeEvent[] soFar()
          Gets a list of events so far.
 

Method Detail

putProperty

public void putProperty(java.lang.String property,
                        java.lang.Object value)
Adds the given property to the event that will be thrown.

Parameters:
property - the name of the property to change
value - the value to give the property

commit

public void commit()
Commits the current changes.


rollback

public void rollback()
Rolls back the transaction.


soFar

public ViperChangeEvent[] soFar()
Gets a list of events so far.

Returns:

isAlive

public boolean isAlive()
Tests to see if the transaction is still active.

Returns:
true if the transaction hasn't been rolled back or committed