| org.mmbase.bridge.Transaction
All known Subclasses: org.mmbase.bridge.implementation.BasicTransaction,
Transaction | public interface Transaction extends Cloud(Code) | | A transaction is an environment that allows for the editing of nodes
within a 'safe' context. Either all edits in a transaction are comitted, or
all fail. A transaction acts as a cloud. All that can be done in a cloud can
be done in a transaction.
For example a node retrieved using the transaction's getNode method resides
in the transaction, if you change or remove the node, you can later roll it
back by calling the transaction's cancel method.
author: Pierre van Rooden version: $Id: Transaction.java,v 1.6 2008/02/16 22:13:53 nklasens Exp $ |
cancel | public void cancel()(Code) | | Cancels this transaction. If the transaction itself was 'nested' in
another transaction, that 'outer' transaction is also canceled.
This routine also removes the transaction (and all outer transactions)
as an 'active' transaction (it cannot be opened again).
|
commit | public boolean commit()(Code) | | Commits this transaction. This has no effect if the transaction itself
was 'nested' in another transaction. In that case, nothing happens until
the 'outer' transaction commits. This routine also removes the
transaction as an 'active' transaction (it cannot be opened again).
true if the commit succeeded, false otherwise |
getCloudName | public String getCloudName()(Code) | | Returns the name of the cloud this transaction uses
the name of the cloud since: MMBase-1.8 |
isCanceled | public boolean isCanceled()(Code) | | Returns whether the transaction is canceled
true when canceled since: MMBase-1.8 |
isCommitted | public boolean isCommitted()(Code) | | Returns whether the transaction is committed
true when committed since: MMBase-1.8 |
|
|