Examples of commitTransaction()


Examples of com.sleepycat.collections.CurrentTransaction.commitTransaction()

        assertEquals(o2, storeMap2.get("pk2"));
        assertEquals(o2, indexMap2.get("pk1"));

        if (txn != null) {
            txn.commitTransaction();
            txn.beginTransaction(null);
        }

        /*
         * store1 contains o1 with primary key "pk1" and index key "ik1".
View Full Code Here

Examples of com.threerings.crowd.data.BodyObject.commitTransaction()

                    _ssobj.commitTransaction();
                }

            } finally {
                if (body.isActive()) {
                    body.commitTransaction();
                }
            }

//             log.debug("Removed " + bodyOid + " from "+ this + ".");
View Full Code Here

Examples of er.neo4jadaptor.Neo4JContext.commitTransaction()

          }
        } finally {
          cursor.close();
        }
      }
      context.commitTransaction();
    } finally {
      context.rollbackTransaction();
    }
  }
 
View Full Code Here

Examples of it.eng.spago.dbaccess.sql.DataConnection.commitTransaction()

       
        dataResult = sqlCommand.execute(inputParameter);
      }else{
        dataResult = sqlCommand.execute();
      }
      dataConnection.commitTransaction();
    } // try
    catch (Exception ex) {
      toReturn = false;
      logger.error("QueryExecutor::executeQuery:", ex);
      try{
View Full Code Here

Examples of net.sf.archimede.model.DatabaseUtil.commitTransaction()

           
            FolderDao.createInstance().save(thesisFolder);
            this.addMetadateInFolder(thesisMetadata, thesisFolder);
            this.addFilesInFolder(thesisFolderFile, thesisFolder);
           
            dbUtil.commitTransaction();
        } catch (Exception e) {
            e.printStackTrace();
            dbUtil.rollbackTransaction();
        }
    }
View Full Code Here

Examples of org.apache.activemq.broker.Broker.commitTransaction()

            for (TransactionId txid : broker.getPreparedTransactions(null)) {
                if (multiKahaDBPersistenceAdapter.isLocalXid(txid)) {
                    try {
                        if (recoveredPendingCommit.contains(txid)) {
                            LOG.info("delivering pending commit outcome for tid: " + txid);
                            broker.commitTransaction(null, txid, false);

                        } else {
                            LOG.info("delivering rollback outcome to store for tid: " + txid);
                            broker.forgetTransaction(null, txid);
                        }
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                        }
                        size += message.getSize();
                        message.decrementReferenceCount();
                        // Commit the batch if it's getting too big
                        if (size >= maxCheckpointMessageAddSize) {
                            persitanceAdapter.commitTransaction(context);
                            persitanceAdapter.beginTransaction(context);
                            size = 0;
                        }
                    }
                }
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                            size = 0;
                        }
                    }
                }

                persitanceAdapter.commitTransaction(context);
                persitanceAdapter.beginTransaction(context);

                // Checkpoint the removed messages.
                Iterator<MessageAck> iterator = cpRemovedMessageLocations.iterator();
                while (iterator.hasNext()) {
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                        LOG.warn("Message could not be added to long term store: " + e.getMessage(), e);
                    }
                    size++;
                    // Commit the batch if it's getting too big
                    if (size >= maxCheckpointMessageAddSize) {
                        persitanceAdapter.commitTransaction(context);
                        persitanceAdapter.beginTransaction(context);
                        size = 0;
                    }
                }
                persitanceAdapter.commitTransaction(context);
View Full Code Here

Examples of org.apache.activemq.store.PersistenceAdapter.commitTransaction()

                        persitanceAdapter.commitTransaction(context);
                        persitanceAdapter.beginTransaction(context);
                        size = 0;
                    }
                }
                persitanceAdapter.commitTransaction(context);
                persitanceAdapter.beginTransaction(context);
                // Checkpoint the removed messages.
                for (MessageAck ack : cpRemovedMessageLocations) {
                    try {
                        referenceStore.removeMessage(transactionTemplate.getContext(), ack);
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.