Examples of commit()


Examples of org.apache.openjpa.persistence.OpenJPAEntityTransaction.commit()

        OpenJPAEntityManager manager = factory.createEntityManager();
        final OpenJPAEntityTransaction transaction = manager.getTransaction();
        try {
            transaction.begin();
            manager.createQuery("DELETE FROM JamesUser user").executeUpdate();
            transaction.commit();
        } catch (Exception e) {
            e.printStackTrace();
            if (transaction.isActive()) {
                transaction.rollback();
            }

Examples of org.apache.phoenix.jdbc.PhoenixConnection.commit()

        final PhoenixConnection connection = new PhoenixConnection(this.connection);
        MutationState state = mutate(context, iterator, connection);
        long totalRowCount = state.getUpdateCount();
        if (connection.getAutoCommit()) {
            connection.getMutationState().join(state);
            connection.commit();
            ConnectionQueryServices services = connection.getQueryServices();
            int maxSize = services.getProps().getInt(QueryServices.MAX_MUTATION_SIZE_ATTRIB,QueryServicesOptions.DEFAULT_MAX_MUTATION_SIZE);
            state = new MutationState(maxSize, connection, totalRowCount);
        }
        final MutationState finalState = state;

Examples of org.apache.pig.CommittableStoreFunc.commit()

            confCopy.set("pig.storeFunc", ObjectSerializer.serialize(
                    sFuncString));
            confCopy.set(JobControlCompiler.PIG_STORE_CONFIG,
                    ObjectSerializer.serialize(storeConfig));
           
            csFunc.commit(confCopy);
        }
    }
   
    private void commit(StoreFunc sFunc, Configuration conf,
            String storeConfigSerializedString, String sFuncString) throws IOException {

Examples of org.apache.qpid.jms.Session.commit()

        producer.send(producerSession.createTextMessage("msg1"));
        producer.send(producerSession.createTextMessage("msg2"));
        producer.send(producerSession.createTextMessage("msg3"));
        producer.send(producerSession.createTextMessage("msg4"));

        producerSession.commit();

        _logger.info("Starting connection");
        con.start();
        TextMessage tm = (TextMessage) consumer.receive();
        assertNotNull(tm);

Examples of org.apache.qpid.server.AMQChannel.commit()

            if (channel == null)
            {
                throw body.getChannelNotFoundException(channelId);
            }
            channel.commit();

            MethodRegistry methodRegistry = session.getMethodRegistry();
            AMQMethodBody responseBody = methodRegistry.createTxCommitOkBody();
            session.writeFrame(responseBody.generateFrame(channelId));
                       

Examples of org.apache.qpid.server.protocol.v0_8.AMQChannel.commit()

            if (channel == null)
            {
                throw body.getChannelNotFoundException(channelId);
            }
            channel.commit(new Runnable()
            {

                @Override
                public void run()
                {

Examples of org.apache.qpid.server.txn.DtxBranch.commit()

                recoverer = new SynchronousMessageStoreRecoverer();
        recoverer.recover(_virtualHost);

        DtxBranch branch = dtxRegistry.getBranch(new Xid(format, globalId, branchId));
        assertNotNull("Expected dtx branch to be created", branch);
        branch.commit();

        ServerMessage<?> message = storedMessage.getMetaData().getType().createMessage(storedMessage);
        verify(queue, times(1)).enqueue(eq(message), (Action<? super MessageInstance>)isNull());
        verify(transaction).commitTran();
    }

Examples of org.apache.qpid.server.txn.LocalTransaction.commit()

                                });
                }
            }

        });
        txn.commit();
    }

    org.apache.qpid.server.virtualhost.VirtualHost getVirtualHost()
    {
        return _virtualHost;

Examples of org.apache.qpid.server.txn.ServerTransaction.commit()

                                        }
                                        super.postCommit();
                                    }
                                }
                    );
                    txn.commit();


                }

            }

Examples of org.apache.sandesha2.storage.Transaction.commit()

      Transaction tran = storageManager.getTransaction();
     
      RMDBean finderBean = new RMDBean();
      List rmdBeans = storageManager.getRMDBeanMgr().find(finderBean);
     
      tran.commit();
     
      lastError = null;
     
      if (rmdBeans.isEmpty())
        lastError = new Error("rmdBeans empty " + rmdBeans);
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.