Examples of commit()


Examples of org.ardverk.dht.storage.message.Response.commit()

     
      if (response == null) {
        throw new IllegalStateException();
      }
     
      return response.commit();
     
    } catch (Exception err) {
      LOG.error("Exception", err);
      return ResponseFactory.commit(ResponseFactory.error(err));
    } finally {

Examples of org.axonframework.saga.AssociationValues.commit()

            final String sagaType = typeOf(saga.getClass());
            final AssociationValues associationValues = saga.getAssociationValues();
            for (AssociationValue av : associationValues.addedAssociations()) {
                storeAssociationValue(av, sagaType, saga.getSagaIdentifier());
            }
            associationValues.commit();
            storeSaga(saga);
        }
    }

    @Override

Examples of org.axonframework.unitofwork.UnitOfWork.commit()

                if (nestingCounter.decrementAndGet() > 0) {
                    UnitOfWork uow = DefaultUnitOfWork.startAndGet();
                    try {
                        testSubject.handle(event);
                    } finally {
                        uow.commit();
                    }
                }
                return null;
            }
        }).when(mockSaga1).handle(isA(EventMessage.class));

Examples of org.b3log.latke.repository.Transaction.commit()

            decPageCommentCount(pageId);
            // Step 3: Update blog statistic comment count
            statisticMgmtService.decBlogCommentCount();
            statisticMgmtService.decPublishedBlogCommentCount();

            transaction.commit();
        } catch (final Exception e) {
            if (transaction.isActive()) {
                transaction.rollback();
            }

Examples of org.castor.persist.TransactionContext.commit()

        case Status.STATUS_PREPARED:
            // Commit can only occur after a prepare, so must be
            // in prepared state first. Any ODMG error is reported
            // as a heuristic decision to rollback.
            try {
                tx.commit();
            } catch (TransactionAbortedException except) {
                // Transaction cannot commit and was rolledback
                throw new XAException(XAException.XA_HEURRB);
            } catch (IllegalStateException except) {
                throw new XAException(XAException.XAER_PROTO);

Examples of org.codehaus.activemq.service.Transaction.commit()

        try {
            for (int i = 0; i < containerManagers.length; i++) {
                containerManagers[i].commitTransaction(client, transactionId);
            }
            Transaction transaction = transactionManager.getLocalTransaction(transactionId);
            transaction.commit(true);
        }
        catch (XAException e) {
            // TODO: I think the XAException should propagate all the way to the client.
            throw (JMSException) new JMSException(e.getMessage()).initCause(e);
        }

Examples of org.compass.core.CompassSession.commit()

    // lösche aus dem Compass-Index
    CompassSession session = compass.openSession();
    try {
      session.delete(aktuellesArchivale);
      session.commit();
    } catch (CompassException ce) {
      ce.printStackTrace();
      session.rollback();
    }

Examples of org.compass.core.CompassTransaction.commit()

    while (iterator.hasNext()) {
      DefaultCompassHit defaultCompassHit = (DefaultCompassHit) iterator.next();
      compassSession.delete(defaultCompassHit.getData());
    }
   
    compassTransaction.commit();
    compassSession.close();
  }
 
  private CompassItemLanguage formatItemLanguage(Item item, ItemLanguage master, Long siteDomainId) {
    CompassItemLanguage compassItemLanguage = new CompassItemLanguage();

Examples of org.compiere.util.Trx.commit()

    }
    //  Transaction
    if (trx != null)
    {
      if (success)
        trx.commit();
      else
        trx.rollback();
      trx.close();
    }
  }  //  create

Examples of org.conserve.connection.ConnectionWrapper.commit()

        if (!currentObject.getClass().isArray())
        {
          // only non-arrays are treated as proper objects.
          target.saveObjectUnprotected(targetCw, currentObject);
          copyExternalProtection(targetCw, currentObject);
          targetCw.commit();
        }
        // get the next id
        currentId = getSmallestIdLargerThan(currentId);
      }
    }
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.