Examples of commitTransaction()


Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

        {
            broker = PersistenceBrokerFactory.defaultPersistenceBroker();

            broker.beginTransaction();
            broker.delete(product);
            broker.commitTransaction();
        }
        catch (PersistenceBrokerException ex)
        {
            if (broker != null)
            {
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

            // 2. start broker transaction
            broker.beginTransaction();
            // 3. now ask broker to store the edited object
            broker.store(product);
            // 4. commit transaction
            broker.commitTransaction();
        }
        catch (OJBRuntimeException ex)
        {
            // rollback in case of errors
            if (broker != null)
View Full Code Here

Examples of org.apache.ojb.broker.PersistenceBroker.commitTransaction()

            // 4. start broker transaction
            broker.beginTransaction();
            // 5. delete product
            broker.deleteByQuery(query);
            // 6. commit transaction
            broker.commitTransaction();
        }
        catch (OJBRuntimeException ex)
        {
            // rollback in case of errors
            if (broker != null)
View Full Code Here

Examples of org.apache.stonehenge.stocktrader.dal.OrderDAO.commitTransaction()

      order = createOrder(orderType, userID, holdingID, symbol, quantity,
          holding);

      TradeOrderServiceClient asynClient = TradeOrderServiceClient.getInstance();
      asynClient.SubmitOrderTrasactedQueue(order);
      orderDAO.commitTransaction();
      return order;
    } catch (Exception e) {
      try {
        orderDAO.rollbackTransaction();
      } catch (DAOException e2) {
View Full Code Here

Examples of org.catais.veriso.interlis.IliReader.commitTransaction()

            // do the import
            {
                IliReader iliReader = new IliReader(params);
                iliReader.startTransaction();
                iliReader.read();
                iliReader.commitTransaction();

                PostProcessing postProcessing = new PostProcessing(params);
                postProcessing.run();

                Vacuum vacuum = new Vacuum(params);
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.AbstractSession.commitTransaction()

                // Need to run post-delete selector if available
                eventManager.executeEvent(new DescriptorEvent(DescriptorEventManager.PostDeleteEvent, this));
            }

            if (!isUnitOfWork) {
                session.commitTransaction();
            }
            commitManager.markCommitCompleted(object);

            // CR3510313, avoid removing aggregate collections from cache (maintain cache is false).
            if (shouldMaintainCache()) {
View Full Code Here

Examples of org.geotools.arcsde.session.ISession.commitTransaction()

            @Override
            public Void execute(ISession session, SeConnection connection) throws SeException,
                    IOException {

                try {
                    session.commitTransaction();
                    session.startTransaction();
                } catch (IOException se) {
                    LOGGER.log(Level.WARNING, se.getMessage(), se);
                    throw se;
                }
View Full Code Here

Examples of org.jboss.arquillian.transaction.spi.provider.TransactionProvider.commitTransaction()

                    if (transactionMode == TransactionMode.ROLLBACK || isTestRequiresRollback()) {
                        // rollbacks the transaction
                        transactionProvider.rollbackTransaction(transactionalTest);
                    } else {
                        // commits the transaction
                        transactionProvider.commitTransaction(transactionalTest);
                    }

                } finally {
                    lifecycleEvent.fire(new AfterTransactionEnded());
View Full Code Here

Examples of org.locationtech.udig.project.internal.EditManager.commitTransaction()

                 
                    EditManager editManagerInternal = mapEditor.getMap().getEditManagerInternal();
         
                    SaveMapRunnable.Result result = saveTemporaryLayers();
                    if( result == Result.NO_TEMP_LAYERS ){
              editManagerInternal.commitTransaction();

              success[0] = true;
                    } else {
                      success[0] = false;
                    }
View Full Code Here

Examples of org.locationtech.udig.project.internal.EditManager.commitTransaction()

                 
                    EditManager editManagerInternal = mapEditor.getMap().getEditManagerInternal();
         
                    SaveMapPaletteRunnable.Result result = saveTemporaryLayers();
                    if( result == Result.NO_TEMP_LAYERS ){
              editManagerInternal.commitTransaction();

              success[0] = true;
                    } else {
                      success[0] = false;
                    }
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.