net.sourceforge.fluxion.runcible.io.command
Class Transaction
java.lang.Object
net.sourceforge.fluxion.runcible.io.command.Transaction
public class Transaction
- extends java.lang.Object
A Transaction
is a group of commands, which must be in some way
associated. This way, the commands are executed as they are submitted to the
ChangeInvoker
, but composed into a grouping, so that when a
transaction is closed, the commands within this transaction are compiled into
a single CompositeCommand
. Consequently, commands submitted as part
of a transaction are executed as normal, and undone as normal, until the
transaction is closed, at which point an undo call undoes all the commands in
the transaction.
- Author:
- Tony Burdett
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
openTransaction
public static Transaction openTransaction()
closeTransaction
public static CompositeCommand closeTransaction(Transaction transaction)
throws java.lang.IllegalAccessException
- Throws:
java.lang.IllegalAccessException
submitCommand
public void submitCommand(ChangeCommand command)
getTransactionID
public java.lang.String getTransactionID()
Copyright © 2010. All Rights Reserved.