Examples of commit()


Examples of net.sf.ehcache.TransactionController.commit()

    public static void commitTransactionIfNeeded(Ehcache cache) throws CacheException {
        try {
            switch (cache.getCacheConfiguration().getTransactionalMode()) {
                case LOCAL:
                    TransactionController ctrl = cache.getCacheManager().getTransactionController();
                    ctrl.commit();
                    break;

                case XA:
                case XA_STRICT:
                    Object tm = ((net.sf.ehcache.Cache) cache).getTransactionManagerLookup().getTransactionManager();

Examples of net.sf.ehcache.transaction.local.LocalTransactionContext.commit()

        }

        LocalTransactionContext currentTx = contextMap.get(txId);

        try {
            currentTx.commit(ignoreTimeout);
            statistics.transactionCommitted();
        } catch (TransactionTimeoutException tte) {
            statistics.transactionTimedOut();
            statistics.transactionRolledBack();
            throw tte;

Examples of net.sf.hibernate.Transaction.commit()

        txn = session.beginTransaction();
        repository.setAttribute(0, "test.x", "xvalue0");
        repository.setAttribute(0, "test.y", "yvalue0");
        repository.setAttribute(10000, "test.y", "foo");
        txn.commit();

        txn = session.beginTransaction();
        assertEquals("wrong attribute value", "xvalue0", repository.getAttribute(0, "test.x"));
        assertEquals("wrong attribute value", "yvalue0", repository.getAttribute(0, "test.y"));
        assertEquals("wrong attribute value", "foo", repository.getAttribute(10000, "test.y"));

Examples of net.sf.jabref.export.SaveSession.commit()

          }

        try {
            if (commit) {
                session.commit();
                this.encoding = encoding; // Make sure to remember which encoding we used.
            }
            else
                session.cancel();
        } catch (IOException e) {

Examples of net.sf.xbus.base.core.TAManager.commit()

        // check the Adapter return code
        // in case of "not success" throw new XException
        if (Constants.RC_OK.equals(adapter.getReturncode()))
        {
          mailReceived = true;
          taManager.commit();
          PostProcessor.start(xbusSystem, adapter.getResponse(),
              Constants.POSTPROCESSING_PERSYSTEM);
          Trace
              .info("End processing "
                  + xbusSystem.getCompleteName());

Examples of net.sf.xbus.base.journal.Journal.commit()

        // closing the
        // connection to the database.
        call.setResponseTimestamp(new Date());
        Journal journal = new Journal();
        journal.log('R', source, call);
        journal.commit();
      } // try
      catch (Exception t)
      {
        Trace.error(t);
      } // catch (Throwable t)

Examples of net.sf.xbus.technical.mq.MQConnection.commit()

        message = (TextMessage) e.nextElement();
        System.out.print(message.getText());
        System.out.print(Constants.QUEUE_DUMP_DELIMITER);
      }

      mqCon.commit();
      mqCon.close();
    }
    catch (Exception exc)
    {
      System.out.println("Exception gefangen");

Examples of net.sourceforge.ganttproject.gui.options.model.EnumerationOption.commit()

  public ExporterBase() {
        final Stylesheet[] stylesheets = getStylesheets();
        EnumerationOption stylesheetOption= createStylesheetOption(getStylesheetOptionID(), stylesheets);
        stylesheetOption.lock();
        stylesheetOption.setValue(stylesheets[0].getLocalizedName());
        stylesheetOption.commit();
        myOptions = new GPOptionGroup("exporter.html", new GPOption[] {stylesheetOption});
        myOptions.setTitled(false);
  }

    public void run(final File outputFile, final ExportFinalizationJob finalizationJob)

Examples of net.sourceforge.ganttproject.gui.options.model.GPOption.commit()

            if ("option".equals(qName)) {
                GPOption option = (GPOption) myGPOptions.get(attrs.getValue("id"));
                if (option!=null) {
                    option.lock();
                    option.loadPersistentValue(attrs.getValue("value"));
                    option.commit();
                }
                return;
            }

            if (attrs != null) {

Examples of net.sourceforge.ganttproject.task.TaskMutator.commit()

                        Color.white, returnTask[i].getColor()));
            if (returnTask[i].getShape() != null)
                returnTask[i].setShape(new ShapePaint(returnTask[i].getShape(),
                        Color.white, returnTask[i].getColor()));

            mutator.commit();
            if (onlyOneTask) {
                myDependenciesPanel.getTableModel().commit();
            }
            returnTask[i].applyThirdDateConstraint();
        }
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.