|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.mmbase.bridge.implementation.BasicCloud
org.mmbase.bridge.implementation.BasicTransaction
The absic implementation for a Transaction cLoud. A Transaction cloud is a cloud which buffers allc hanegs made to nodes - which means that chanegs are committed only if you commit the transaction itself. This mechanism allows you to rollback changes if something goes wrong.
| Field Summary | |
protected java.lang.String |
transactionContext
The id of the transaction for use with the transaction manager. |
protected java.lang.String |
transactionName
The name of the transaction as used by the user. |
| Fields inherited from class org.mmbase.bridge.implementation.BasicCloud |
account, description, name, nodeManagerCache, parentCloud, transactions, userContext |
| Method Summary | |
void |
cancel()
Cancels this transaction. |
boolean |
commit()
Commits this transaction. |
protected void |
finalize()
If this Transaction is scheduled to be garbage collected, the transaction is canceled and cleaned up. |
| Methods inherited from class java.lang.Object |
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String transactionContext
protected java.lang.String transactionName
| Method Detail |
public boolean commit()
Transaction
commit in interface Transactiontrue if the commit succeeded, false
otherwisepublic void cancel()
Transaction
cancel in interface Transactionprotected void finalize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||