Examples of commit()


Examples of org.jooq.impl.DefaultConnectionProvider.commit()

                // DSLContext object to it
                tx.run(DSL.using(configuration));

                // If we get here, then commit the
                // transaction
                c.commit();
            }
            catch (RuntimeException e) {

                // Any exception will cause a rollback
                c.rollback();

Examples of org.jpokemon.item.Inventory.commit()

    int storeIndex = storeSelector.getSelectedIndex();
    int storeId = storeSelector.getCurrentElement().getId();

    Inventory inventory = new Inventory();
    inventory.setStore(storeId);
    inventory.commit();

    readyToEdit = false;
    storeSelector.reload();
    storeSelector.setSelectedIndex(storeIndex);
    readyToEdit = true;

Examples of org.jpokemon.item.Store.commit()

    Store store = storeSelector.getCurrentElement();
    if (store == null) { return; }

    store.setName(newStoreName);
    store.commit();

    storeNameTextField.setSavedValue(newStoreName);
    storeSelector.repaint();
  }

Examples of org.jpokemon.trainer.Event.commit()

    Event event = eventSelector.getCurrentElement();
    String description = descriptionField.getText();

    event.setDescription(description);
    event.commit();
    getEditor();
  }

  private boolean readyToEdit = false;
  private JPanel editorPanel = new JPanel();

Examples of org.jtester.module.database.environment.DBEnvironment.commit()

    return true;
  }

  public boolean commit() throws SQLException {
    DBEnvironment environment = workingEnvironment();
    environment.commit();
    environment.getConnection().setAutoCommit(false);
    return true;
  }

  public Fixture queryStats() {

Examples of org.jugile.demo.domain.Domain.commit()

    d.createBook("b1");
    d.createBook("b2");
    d.createBook("b3");
    d.createBook("foo");
    d.createBook("foo");
    d.commit();
   
    for (Book b : d.getBooks().byTitle("foo")) {
      print("book: " + b.getTitle());
    }

Examples of org.jugile.proto2.domain.Domain.commit()

  public void testCreateAndVerify() {
    Domain.reset();
    Domain d = Domain.getDomain();
    createDomain(d);
    verifyDomain(d); // before commit, all is in uow
    d.commit();
    verifyDomain(d); // after commit, all is now in dd
    d.rollback();
  }
 
  public static void createDomain(Domain d) {

Examples of org.jugile.util.DBConnection.commit()

        o.version = (Integer)row.get(3);
        o._setFlds(dd,bi(),row,countSelectHeaderFlds());
        // copy fields to copy
        o.copy(bi(),this);
      }
      c.commit();
    } catch (Exception e) {
      try { c.rollback(); fail(e); } catch (Exception e2) { fail(e2); }
    } finally {
      try { c.free(); } catch (Exception e2) { fail(e2); }
    }

Examples of org.jvnet.hk2.config.Transaction.commit()

                        final SecureAdminPrincipal instancePrincipal =
                                secureAdmin_w.createChild(SecureAdminPrincipal.class);
                        instancePrincipal.setDn(secureAdminHelper(habitat).getDN(secureAdmin.instanceAlias(), true));
                        result.add(instancePrincipal);
                        t.commit();
                    } catch (Exception ex) {
                        throw new RuntimeException(ex);
                    }
                }
            }

Examples of org.jvnet.hk2.internal.DynamicConfigurationImpl.commit()

                build());

        dci.bind(BuilderHelper.createConstantDescriptor(
                new DefaultClassAnalyzer(sli)));

        dci.commit();

        GuiceBridge.getGuiceBridge().initializeGuiceBridge(sli);
        GuiceIntoHK2Bridge guiceBridge = sli.getService(GuiceIntoHK2Bridge.class);
        guiceBridge.bridgeGuiceInjector(GuiceInjectorHolder.getInjector());
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.