Examples of commit()


Examples of com.totsp.gwittir.client.util.HistoryTokenizer.commit()

    }
    if(appendHistory){
      HistoryTokenizer tok = new HistoryTokenizer();
      tok.begin();
      tok.setToken("s", Integer.toString(currentState));
      tok.commit();
    }
  }


Examples of com.vaadin.data.fieldgroup.FieldGroup.commit()

            @Override
            public void buttonClick(ClickEvent event) {
                String msg = "Commit succesful";
                try {
                    fieldGroup.commit();
                } catch (CommitException e) {
                    msg = "Commit failed: " + e.getMessage();
                }
                Notification.show(msg);
                log.log(msg);

Examples of com.vaadin.data.util.sqlcontainer.SQLContainer.commit()

                            c.getContainerProperty(id, "FIRST_NAMES").setValue(
                                    getRandonName());
                            c.getContainerProperty(id, "LAST_NAME").setValue(
                                    getRandonName());
                        }
                        c.commit();
                        getContext().lock();
                        try {
                            proggress
                                    .setValue(new Float((1.0f * cent) / cents));
                            proggress.setCaption("" + 100 * cent
 

Examples of com.vaadin.ui.ComboBox.commit()

        DataTeaDescripcion s = new DataTeaDescripcion();
        if (itemId instanceof DataTea)
          s = ((DataTea) itemId).getDataTeaDescripcion();

        combo.setValue(s);
        combo.commit();
        return combo;
      } else if (container.getItem(itemId).getItemProperty(propertyId)
          .getValue() instanceof ProyectoVia) {

        final ComboBox combo = new ComboBox();

Examples of com.vaadin.ui.Form.commit()

        Button b = new Button("Commit", new ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                try {
                    form.commit();
                    if (form.isValid()) {
                        getMainWindow().showNotification(
                                "OK! Form validated and no error was thrown",
                                Notification.TYPE_HUMANIZED_MESSAGE);
                    } else {

Examples of com.vaadin.ui.TextField.commit()

                "This button does nothing (but flushes queued variable changes)"));
        main.addComponent(new Button("Commit the field to property",
                new Button.ClickListener() {
                    @Override
                    public void buttonClick(ClickEvent event) {
                        tf1.commit();
                    }
                }));
        main.addComponent(new Button("Show property value",
                new Button.ClickListener() {
                    @Override

Examples of com.xiaoleilu.hutool.db.Session.commit()

      // 分页,注意,ANSI SQL中不支持分页!
      List<Entity> pagedEntityList = session.page(null, where, 0, 20, new EntityHandler());
      log.info("{}", pagedEntityList);

      session.commit();
    } catch (Exception e) {
      session.quietRollback();
    } finally {
      session.close();
    }

Examples of com.yahoo.omid.tso.Bucket.commit()

            System.out.println(i % 12);

        Bucket b = new Bucket(10);

        for (int i = 0; i <= 12; i++)
            b.commit(i);

        for (int i = 0; i <= 24; i++)
            System.out.println(!b.isUncommited(i));

        BitSet transactions = new BitSet(12);

Examples of com.youtube.vitess.vtgate.VtGate.commit()

        .addBindVar(BindVariable.forULong("id", UnsignedLong.valueOf("1")))
        .addBindVar(BindVariable.forULong("keyspace_id", ((UnsignedLong) kid.getId())))
        .addKeyspaceId(kid).build();
    vtgate.begin();
    vtgate.execute(insertQuery);
    vtgate.commit();
    vtgate.begin();
    try {
      vtgate.execute(insertQuery);
      Assert.fail("failed to throw exception");
    } catch (IntegrityException e) {

Examples of de.fhg.igd.mongomvcc.VBranch.commit()

   
    // insert another person
    persons.insert(factory.createDocument("name", "Peter"));
   
    // 3. Commit index to the database
    long firstCid = master.commit();
   
    // 4. Read documents from the database
    VCursor c = persons.find();
    for (Map<String, Object> person : c) {
      System.out.print("Person { name: " + person.get("name"));
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.