Examples of rollback()


Examples of org.h2.engine.Session.rollback()

                        oldestSession = s;
                    }
                }
            }
            trace.info("Rolling back session #" +oldestSession.getId() + " (the oldest uncommitted)");
            oldestSession.rollback();
            logSizeBase = log.getSize();
        }
    }

    /**
 
View Full Code Here

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

      }
      finally
      {
        if (!txn.isFinished())
        {
          txn.rollback();
        }
      }
    }
    finally
    {
View Full Code Here

Examples of org.hibernate.Transaction.rollback()

    if(transactions == null)
      return;
    Transaction tx = (Transaction)transactions.get();
    transactions.set(null);
    if (tx != null && !tx.wasCommitted() && !tx.wasRolledBack()) {
      tx.rollback();
    }
    else{
      if(tx!=null && log.isWarnEnabled())
        log.warn("Trying to rollback the unrollbackable transaction, nothing to do.");
    }
View Full Code Here

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

            assertNotNull(message);
            assertEquals(i, message.getIntProperty("id").intValue());
            message.acknowledge();
         }

         session.rollback();

         session.close();

         session = sf.createSession(false, false, 0);
View Full Code Here

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

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

         if (tx.getState() == State.PREPARED && pageTransaction != null)
         {
            pageTransaction.rollback();
         }
      }

      public void beforeCommit(final Transaction tx) throws Exception
      {
View Full Code Here

Examples of org.hornetq.core.server.ServerSession.rollback()

               if (entry.getValue().getConnection() == connection)
               {
                  ServerSession serverSession = entry.getValue().getSession();
                  try
                  {
                     serverSession.rollback(true);
                     serverSession.close(false);
                  }
                  catch (Exception e)
                  {
                     HornetQServerLogger.LOGGER.errorCleaningStompConn(e);
View Full Code Here

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

               catch (Exception e)
               {
                  log.warn(e.getMessage(), e);
                  try
                  {
                     tx.rollback();
                  }
                  catch (Exception e2)
                  {
                     // Nothing much we can do now
                     log.warn(e2.getMessage(), e2);
View Full Code Here

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

        
         tx.commit();
      }
      catch (Exception e)
      {
         tx.rollback();
         throw e;
      }

   }
View Full Code Here

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

               catch (Exception e)
               {
                  log.warn(e.getMessage(), e);
                  try
                  {
                     tx.rollback();
                  }
                  catch (Exception e2)
                  {
                     // Nothing much we can do now
                     log.warn(e2.getMessage(), e2);
View Full Code Here

Examples of org.huihoo.workflow.store.persistent.UserTransaction.rollback()

      {
        if (userTransaction != null)
        {
          try
          {
            userTransaction.rollback();
          }
          catch (TransactionException e)
          {
            ;
          }
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.