Package org.apache.jackrabbit.data.core

Examples of org.apache.jackrabbit.data.core.TransactionContext


    /**
     * {@inheritDoc}
     */
    public void commit(Xid xid, boolean onePhase) throws XAException {
        TransactionContext tx = txGlobal.get(xid);
        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        try {
          if (onePhase) {
            tx.prepare();
          }
          tx.commit();
        } finally {
          txGlobal.remove(xid);
        }
    }
View Full Code Here


    /**
     * {@inheritDoc}
     */
    public void rollback(Xid xid) throws XAException {
        TransactionContext tx = txGlobal.get(xid);
        if (tx == null) {
            throw new XAException(XAException.XAER_NOTA);
        }
        try {
          tx.rollback();
        } finally {
          txGlobal.remove(xid);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jackrabbit.data.core.TransactionContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.