org.modeshape.jcr.txn
Class NoClientTransactions.NoClientTransaction
java.lang.Object
org.modeshape.jcr.txn.Transactions.BaseTransaction
org.modeshape.jcr.txn.Transactions.SimpleTransaction
org.modeshape.jcr.txn.Transactions.TraceableSimpleTransaction
org.modeshape.jcr.txn.NoClientTransactions.NoClientTransaction
- All Implemented Interfaces:
- SessionEnvironment.MonitorFactory, Transactions.Transaction
- Enclosing class:
- NoClientTransactions
protected class NoClientTransactions.NoClientTransaction
- extends Transactions.TraceableSimpleTransaction
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoClientTransactions.NoClientTransaction
public NoClientTransactions.NoClientTransaction(TransactionManager txnMgr)
commit
public void commit()
throws RollbackException,
HeuristicMixedException,
HeuristicRollbackException,
SecurityException,
IllegalStateException,
SystemException
- Description copied from interface:
Transactions.Transaction
- Commit the transaction currently associated with the calling thread.
- Specified by:
commit
in interface Transactions.Transaction
- Overrides:
commit
in class Transactions.TraceableSimpleTransaction
- Throws:
RollbackException
- If the transaction was marked for rollback only, the transaction is rolled back and this
exception is thrown.
HeuristicMixedException
- If a heuristic decision was made and some some parts of the transaction have been
committed while other parts have been rolled back.
HeuristicRollbackException
- If a heuristic decision to roll back the transaction was made.
SecurityException
- If the caller is not allowed to commit this transaction.
IllegalStateException
- If the calling thread is not associated with a transaction.
SystemException
- If the transaction service fails in an unexpected way.
rollback
public void rollback()
throws IllegalStateException,
SecurityException,
SystemException
- Description copied from interface:
Transactions.Transaction
- Rolls back the transaction currently associated with the calling thread.
- Specified by:
rollback
in interface Transactions.Transaction
- Overrides:
rollback
in class Transactions.TraceableSimpleTransaction
- Throws:
IllegalStateException
- If the transaction is in a state where it cannot be rolled back. This could be because
the calling thread is not associated with a transaction, or because it is in the prepared state
.
SecurityException
- If the caller is not allowed to roll back this transaction.
SystemException
- If the transaction service fails in an unexpected way.
transactionBegin
protected NoClientTransactions.NoClientTransaction transactionBegin()
Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.