|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transaction
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.
| Field Summary |
|---|
| Fields inherited from interface org.mmbase.bridge.Cloud |
|---|
PROP_IGNOREVALIDATION, PROP_REQUEST, PROP_RESPONSE, PROP_SESSIONNAME, PROP_XMLMODE |
| Method Summary | |
|---|---|
void |
cancel()
Cancels this transaction. |
boolean |
commit()
Commits this transaction. |
String |
getCloudName()
Returns the name of the cloud this transaction uses |
NodeList |
getNodes()
|
boolean |
isCanceled()
Returns whether the transaction is canceled |
boolean |
isCommitted()
Returns whether the transaction is committed |
| Method Detail |
|---|
boolean commit()
true if the commit succeeded, false
otherwisevoid cancel()
boolean isCommitted()
true when committedboolean isCanceled()
true when canceledNodeList getNodes()
String getCloudName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||