public class MockTransaction extends MockCloud implements Transaction
cancel() still throws UnsupportedOperationException.cloudContexttransactionsPROP_IGNOREVALIDATION, PROP_REQUEST, PROP_RESPONSE, PROP_SESSIONNAME, PROP_XMLMODE| Constructor and Description |
|---|
MockTransaction(String n,
MockCloud cloud) |
| Modifier and Type | Method and Description |
|---|---|
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(Map<String,Object> m,
NodeManager nm,
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
|
getCloudContext, getList, getNode, getNodeManager, getNodeManagers, hasNode, hasNodeManager, hasRelationManager, hasRelationManager, hasRole, newTransaction, toStringcreateAggregatedQuery, createNodeList, createNodeManagerList, createNodeQuery, createQuery, createRelationList, createRelationManagerList, createTransaction, createTransaction, createTransaction, getDescription, getFunction, getFunctions, getList, getLocale, getName, getNode, getNodeByAlias, getNodeManager, getPossibleContexts, getProperties, getProperty, getRelation, getRelation, getRelationManager, getRelationManager, getRelationManager, getRelationManager, getRelationManagers, getRelationManagers, getRelationManagers, getTransaction, getUser, hasNode, hasRelation, hasRelation, hasRelationManager, may, mayRead, mayRead, setLocale, setProperty, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateAggregatedQuery, createNodeList, createNodeManagerList, createNodeQuery, createQuery, createRelationList, createRelationManagerList, createTransaction, createTransaction, createTransaction, getCloudContext, getDescription, getFunction, getFunctions, getList, getList, getLocale, getName, getNode, getNode, getNodeByAlias, getNodeManager, getNodeManager, getNodeManagers, getPossibleContexts, getProperties, getProperty, getRelation, getRelation, getRelationManager, getRelationManager, getRelationManager, getRelationManager, getRelationManagers, getRelationManagers, getRelationManagers, getTransaction, getUser, hasNode, hasNode, hasNodeManager, hasRelation, hasRelation, hasRelationManager, hasRelationManager, hasRelationManager, hasRole, may, mayRead, mayRead, setLocale, setProperty, shutdownpublic boolean commit()
Transactioncommit in interface Transactiontrue if the commit succeeded, false
otherwisepublic void cancel()
Transactioncancel in interface Transactionpublic boolean isCommitted()
TransactionisCommitted in interface Transactiontrue when committedpublic boolean isCanceled()
TransactionisCanceled in interface Transactiontrue when canceledpublic NodeList getNodes()
getNodes in interface Transactionpublic String getCloudName()
TransactiongetCloudName in interface TransactionNode getNode(Map<String,Object> m, NodeManager nm, boolean n)
public Cloud getNonTransactionalCloud()
CloudgetNonTransactionalCloud in interface CloudgetNonTransactionalCloud in class AbstractCloudTransactionMMBase 1.9-SNAPSHOT - ${javadoctimestamp}