|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.bridge.util.AbstractCloud
org.mmbase.bridge.mock.MockCloud
org.mmbase.bridge.mock.MockTransaction
public class MockTransaction
MockTransaction for the moment only does't give too much exceptions. It doesn't actually work, so cancel() still throws UnsupportedOperationException.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.bridge.mock.MockCloud |
|---|
cloudContext |
| Fields inherited from class org.mmbase.bridge.util.AbstractCloud |
|---|
transactions |
| Fields inherited from interface org.mmbase.bridge.Cloud |
|---|
PROP_IGNOREVALIDATION, PROP_REQUEST, PROP_RESPONSE, PROP_SESSIONNAME, PROP_XMLMODE |
| Constructor Summary | |
|---|---|
MockTransaction(String n,
MockCloud cloud)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancels this transaction. |
boolean |
commit()
Commits this transaction. |
String |
getCloudName()
Returns the name of the cloud this transaction uses |
(package private) Node |
getNode(MockCloudContext.NodeDescription nd,
boolean n)
|
NodeList |
getNodes()
|
Cloud |
getNonTransactionalCloud()
Returns a cloud which is not a Transaction. |
boolean |
isCanceled()
Returns whether the transaction is canceled |
boolean |
isCommitted()
Returns whether the transaction is committed |
| Methods inherited from class org.mmbase.bridge.mock.MockCloud |
|---|
getCloudContext, getList, getNode, getNodeByAlias, getNodeManager, getNodeManagers, getRelationManager, getRelationManager, hasNode, newTransaction, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
MockTransaction(String n,
MockCloud cloud)
| Method Detail |
|---|
public boolean commit()
Transaction
commit in interface Transactiontrue if the commit succeeded, false
otherwisepublic void cancel()
Transaction
cancel in interface Transactionpublic boolean isCommitted()
Transaction
isCommitted in interface Transactiontrue when committedpublic boolean isCanceled()
Transaction
isCanceled in interface Transactiontrue when canceledpublic NodeList getNodes()
getNodes in interface Transactionpublic String getCloudName()
Transaction
getCloudName in interface Transaction
Node getNode(MockCloudContext.NodeDescription nd,
boolean n)
getNode in class MockCloudpublic Cloud getNonTransactionalCloud()
Cloud
getNonTransactionalCloud in interface CloudgetNonTransactionalCloud in class AbstractCloudTransaction
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||