Examples of commit()


Examples of org.helidb.txn.Transaction.commit()

        {
          db.insert(s_crs_keys[i], s_crs_values[i]);
        }
        if (db instanceof TransactionalDatabase<?, ?>)
        {
          txn.commit();
          txn = null;
        }
      }
      finally
      {

Examples of org.hibernate.Transaction.commit()

    if(transactions == null)
      return;
    // Would be written as a no-op in an EJB container with CMT
    Transaction tx = (Transaction)transactions.get();
    if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {
      tx.commit();
    }
    else{
      if(tx!=null && log.isWarnEnabled())
        log.warn("Trying to commit the uncommitable transaction, nothing to do.");
    }

Examples of org.hornetq.api.core.client.ClientSession.commit()

         msg.putStringProperty(org.hornetq.api.core.Message.HDR_DUPLICATE_DETECTION_ID, new SimpleString("dupl-" + i));

         prod1.send(msg);
      }

      session.commit();

      ClientConsumer consumer = session.createConsumer("q1", true);
      session.start();

      assertNotNull(consumer.receive(5000));

Examples of org.hornetq.core.client.impl.ClientSessionInternal.commit()

            public void run()
            {
               latchCommit.countDown();
               try
               {
                  session.commit();
               }
               catch (HornetQException e)
               {
                  e.printStackTrace();
               }

Examples of org.hornetq.core.paging.PageTransactionInfo.commit()

         PageTransactionInfo pageTransaction = (PageTransactionInfo)tx.getProperty(TransactionPropertyIndexes.PAGE_TRANSACTION);

         if (pageTransaction != null)
         {
            pageTransaction.commit();
         }
      }

      public void afterPrepare(final Transaction tx)
      {

Examples of org.hornetq.core.persistence.impl.journal.JournalStorageManager.commit()

                  survivingMsgs.add(message.getMessageID());
                 
                  // This one will stay here forever
                  storage.storeMessage(message);

                  storage.commit(tx);

                  ctx.executeOnCompletion(new IOAsyncTask()
                  {
                     public void onError(int errorCode, String errorMessage)
                     {

Examples of org.hornetq.core.transaction.Transaction.commit()

               throw new HornetQXAException(XAException.XAER_PROTO, "Cannot commit transaction, it is suspended " + xid);
            }
            else
            {
               theTx.commit(onePhase);
            }
         }
      }
   }

Examples of org.hornetq.core.transaction.impl.BindingsTransactionImpl.commit()

         {
            storageManager.deleteQueueBinding(tx.getID(), getID());
            tx.setContainsPersistent();
         }
        
         tx.commit();
      }
      catch (Exception e)
      {
         tx.rollback();
         throw e;

Examples of org.hornetq.core.transaction.impl.TransactionImpl.commit()

            deliveringCount.incrementAndGet();
            acknowledge(tx, messageReference);
            count++;
         }

         tx.commit();

         return count;
      }
      finally
      {

Examples of org.hsqldb.Session.commit()

                            throw Error.error(result);
                        }
                        break;

                    case ScriptReaderBase.COMMIT_STATEMENT :
                        current.commit(false);
                        break;

                    case ScriptReaderBase.INSERT_STATEMENT : {
                        current.sessionContext.currentStatement = dummy;
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.