Examples of Commit()


Examples of io.druid.data.input.Firehose.commit()

            );
          }
          metrics.incrementProcessed();

          if (numRows >= myRowFlushBoundary) {
            plumber.persist(firehose.commit());
          }
        } else {
          metrics.incrementThrownAway();
        }
      }

Examples of java.sql.Connection.commit()

        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));
        assertEquals("Hallo", rs.getString(2));
        assertFalse(rs.next());

Examples of javax.jdo.Transaction.commit()

            for(int i = 0; i<numInsert; i++) {
                Object pc = new PCPoint(i, i);
                pm.makePersistent(pc);
                inserted.add(pc);
            }
            tx.commit();
            tx = null;
            if (debug) logger.debug("Total objects inserted : " + numInsert);
        }
        finally {
            if ((tx != null) && tx.isActive())

Examples of javax.jms.QueueSession.commit()

      for (i = 0; i < 10; i++) {
        msg.setText("Test number " + i);
        qsend.send(msg);
      }

      qs.commit();
      System.out.println(i + " messages sent.");
     
      qc.close();
    }
  }

Examples of javax.jms.Session.commit()

    int i;
    for (i = 0; i < 10; i++) {
      msg.setText("Msg " + i);
      pub.send(msg);
    }
    session.commit();

    System.out.println(i + " messages published.");

    cnx.close();
  }

Examples of javax.jms.TopicSession.commit()

         TopicPublisher pub = sess.createPublisher(topic);
         pub.setDeliveryMode(DeliveryMode.PERSISTENT);
        
         Message m = sess.createTextMessage("testing123");
         pub.publish(m);
         sess.commit();
        
         conn.close();
         conn = cf.createTopicConnection();
         conn.start();
        

Examples of javax.jms.XAQueueSession.commit()

            Message message = makeMessage(session, modelService, context);

            sender.send(message);

            if (TransactionUtil.getStatus() != TransactionUtil.STATUS_ACTIVE)
                session.commit();

            Debug.logInfo("Message sent.", module);

            // close the connections
            sender.close();

Examples of javax.jms.XASession.commit()

        connection1.start();

        XASession session = connection1.createXASession();
        session.close();
        try {
            session.commit();
            fail("expect exception after close");
        } catch (javax.jms.IllegalStateException expected) {}

        try {
            session.rollback();

Examples of javax.microedition.pim.Contact.commit()

            // Add email and phone info to contact
            contact.addString(Contact.EMAIL, Contact.ATTR_WORK
                    | Contact.ATTR_PREFERRED, "cwarren@rim.com");
            contact.addString(Contact.TEL, Contact.ATTR_MOBILE, PHONE_NUMBER);

            contact.commit();
            contacts.close();
        }
    }
}

Examples of javax.microedition.pim.Event.commit()

            final boolean selection) throws PIMException {
        if (isPIMSupported()) {
            final EventList list = getEventList();
            if (selection) {
                final Event e = createEventByProgramme(list, channelTitle, programme);
                e.commit();
            } else {
                final Enumeration en;
                if (list.maxCategories() != 0) {
                    en = list.itemsByCategory("TV");
                } else {
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.