ModeShape Distribution 3.0.0.Beta4

Class NoClientTransactions

  extended by org.modeshape.jcr.txn.Transactions
      extended by org.modeshape.jcr.txn.NoClientTransactions

public class NoClientTransactions
extends Transactions

An implementation of Transactions that does not even check whether there is a current transaction and instead always attempts to create a transaction within the calls. This is more efficient when the repository can be set up to never use container-managed or user-managed transactions.

Nested Class Summary
Nested classes/interfaces inherited from class org.modeshape.jcr.txn.Transactions
Transactions.BaseTransaction, Transactions.SimpleTransaction, Transactions.Transaction, Transactions.TransactionFunction
Field Summary
Fields inherited from class org.modeshape.jcr.txn.Transactions
monitorFactory, txnMgr
Constructor Summary
NoClientTransactions(SessionEnvironment.MonitorFactory monitorFactory, TransactionManager txnMgr)
Method Summary
 Transactions.Transaction begin()
          Starts a new transaction if one does not already exist, and associate it with the calling thread.
Methods inherited from class org.modeshape.jcr.txn.Transactions
newMonitor, updateCache
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public NoClientTransactions(SessionEnvironment.MonitorFactory monitorFactory,
                            TransactionManager txnMgr)
Method Detail


public Transactions.Transaction begin()
                               throws NotSupportedException,
Description copied from class: Transactions
Starts a new transaction if one does not already exist, and associate it with the calling thread.

Specified by:
begin in class Transactions
the ModeShape transaction
NotSupportedException - If the calling thread is already associated with a transaction, and nested transactions are not supported.
SystemException - If the transaction service fails in an unexpected way.

ModeShape Distribution 3.0.0.Beta4

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.