Examples of TransactionNotInProgressException


Examples of org.apache.ojb.broker.TransactionNotInProgressException

     */
    public synchronized void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException("PersistenceBroker is NOT in transaction, can't commit");
        }
        fireBrokerEvent(BEFORE_COMMIT_EVENT);
        setInTransaction(false);
        clearRegistrationLists();
        referencesBroker.removePrefetchingListeners();
View Full Code Here

Examples of org.apache.ojb.broker.TransactionNotInProgressException

    public void localCommit()
    {
        if (log.isDebugEnabled()) log.debug("commit was called");
        if (!this.isInLocalTransaction)
        {
            throw new TransactionNotInProgressException("Not in transaction, call begin() before commit()");
        }
        try
        {
            if (batchCon != null)
            {
View Full Code Here

Examples of org.apache.ojb.broker.TransactionNotInProgressException

   */
  public void abortTransaction() throws TransactionNotInProgressException
  {
    if (! isInTransaction())
    {
      throw new TransactionNotInProgressException();
    }
    inTransaction = false;
    commandLog.clear();   
  }
View Full Code Here

Examples of org.apache.ojb.broker.TransactionNotInProgressException

    public void commitTransaction()
        throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException();
        }

        Iterator iter = commandLog.iterator();
        try
        {
View Full Code Here

Examples of org.apache.ojb.broker.TransactionNotInProgressException

     */
    public synchronized void commitTransaction() throws TransactionNotInProgressException, TransactionAbortedException
    {
        if (!isInTransaction())
        {
            throw new TransactionNotInProgressException("PersistenceBroker is NOT in transaction, can't commit");
        }
        fireBrokerEvent(BEFORE_COMMIT_EVENT);
        setInTransaction(false);
        clearRegistrationLists();
        referencesBroker.removePrefetchingListeners();
View Full Code Here

Examples of org.exolab.castor.jdo.TransactionNotInProgressException

     */
    public void commit() throws TransactionNotInProgressException, TransactionAbortedException {
        _log.debug("Committing tx");

        if (!isActive()) {
            throw new TransactionNotInProgressException(Messages.message("jdo.txNotInProgress"));
        }
       
        // if ( _ctx.getStatus() == Status.STATUS_MARKED_ROLLBACK )
        if (_ctx.getStatus() == 1) {
            throw new TransactionAbortedException(Messages.message("jdo.txRollback"));
View Full Code Here

Examples of org.exolab.castor.jdo.TransactionNotInProgressException

     */
    public void rollback() throws TransactionNotInProgressException {
        _log.debug("Rolling back tx");

        if (!isActive()) {
            throw new TransactionNotInProgressException(Messages.message("jdo.txNotInProgress"));
        }
        _ctx.rollback();

        unregisterSynchronizables();
    }
View Full Code Here

Examples of org.exolab.castor.jdo.TransactionNotInProgressException

    /**
     * {@inheritDoc}
     */
    public void lock(final Object object) throws PersistenceException {
        if (!isActive()) {
            throw new TransactionNotInProgressException(Messages.message("jdo.txNotInProgress"));
        }
        _ctx.writeLock(object, _lockTimeout);
    }
View Full Code Here

Examples of org.exolab.castor.jdo.TransactionNotInProgressException

     * @return The current active transaction.
     * @throws TransactionNotInProgressException If there's no active transaction.
     */
    protected TransactionContext getTransaction() throws TransactionNotInProgressException {
        if (_scope == null) {
            throw new TransactionNotInProgressException(Messages.message("jdo.dbClosed"));
        }
        if (isActive()) {
            return _ctx;
        }
        throw new TransactionNotInProgressException(Messages.message("jdo.dbTxNotInProgress"));
    }
View Full Code Here

Examples of org.exolab.castor.jdo.TransactionNotInProgressException

     *  has been closed
     */
    public Object nextIdentity() throws PersistenceException {
        // Make sure transaction is still open.
        if (_tx.getStatus() != Status.STATUS_ACTIVE) {
            throw new TransactionNotInProgressException(
                    Messages.message("persist.noTransaction"));
        }
        try {
            _lastIdentity = _query.nextIdentity(_lastIdentity);
        } catch (PersistenceException except) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.