Examples of rollback()


Examples of io.fabric8.patch.Patch.rollback()

            throw new PatchException("Patch '" + patchId + "' not found");
        }
        if (!patch.isInstalled()) {
            throw new PatchException("Patch '" + patchId + "' is not installed");
        }
        patch.rollback(false);
    }

}
View Full Code Here

Examples of java.sql.Connection.rollback()

        assertEquals(s, "PUBLIC");
        assertFalse(rs.next());

        conn.setAutoCommit(false);
        stat.execute("delete from test");
        conn.rollback();
        stat.execute("update test set name = 'Hallo'");
        conn.commit();
        rs = stat.executeQuery("select * from test order by id");
        rs.next();
        assertEquals(1, rs.getInt(1));
View Full Code Here

Examples of javax.ejb.ApplicationException.rollback()

             * Re-throw AppException. Mark the transaction for rollback if the
             * application exception is specified as causing rollback.
             */

            // Mark the transaction for rollback.
            if (applicationException.rollback()) {
                markTransactionRollback();
            }

            // rethrow
            throw e;
View Full Code Here

Examples of javax.jdo.Transaction.rollback()

            tx = null;
            if (debug) logger.debug("Total objects inserted : " + numInsert);
        }
        finally {
            if ((tx != null) && tx.isActive())
                tx.rollback();
        }
    }
      
    /** */
    public List getFromInserted(List list) {
View Full Code Here

Examples of javax.jms.QueueSession.rollback()

               {
                  sender.send(message, persistence, 4, 0);
               }

               if (explicit)
                  session.rollback();
               session.close();
            }
            catch (Exception e)
            {
               log.error("error", e);
View Full Code Here

Examples of javax.jms.Session.rollback()

    msg = prodSession.createTextMessage("Message2");
    producer.send(queue1, msg);
   
    msg = (TextMessage) consumer.receive();
    System.out.println("Receives: " + msg.getText() + " then deny it!");
    consSession.rollback();
   
    msg = (TextMessage) consumer.receive();
    System.out.println("Receives: " + msg.getText() + " then deny it!");
    consSession.rollback();
       
View Full Code Here

Examples of javax.jms.TopicSession.rollback()

         TextMessage m2 = (TextMessage)sub.receive(3000);
               
         assertNotNull(m2);
         assertEquals("testing123", m2.getText());
        
         sess.rollback();
        
         conn.close();
         conn = cf.createTopicConnection();
         conn.start();
        
View Full Code Here

Examples of javax.jms.XASession.rollback()

            session.commit();
            fail("expect exception after close");
        } catch (javax.jms.IllegalStateException expected) {}

        try {
            session.rollback();
            fail("expect exception after close");
        } catch (javax.jms.IllegalStateException expected) {}

        try {
            session.getTransacted();
View Full Code Here

Examples of javax.persistence.EntityTransaction.rollback()

        tx.begin();
        Object result = action.execute(method, parameters);
        tx.commit();
        return result;
      } catch (Exception e) {
        tx.rollback();
        throw e.getCause();
      }
    }
  }
 
View Full Code Here

Examples of javax.resource.cci.LocalTransaction.rollback()

    interactionControl.setVoidCallable(1);

    connection.getLocalTransaction();
    connectionControl.setReturnValue(localTransaction);

    localTransaction.rollback();
    localTransactionControl.setVoidCallable(1);

    connection.close();
    connectionControl.setVoidCallable(1);
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.