Examples of commit()


Examples of org.exolab.castor.jdo.Database.commit()

    }
       
    // Checkpoint commits all the updates to the database
    // but leaves the transaction (and locks) open
    writer.println( "Transaction checkpoint" );
    db.commit();

    db.begin();
    // If no such group exists in the database, create a new
    // object and persist it
    groupOql.bind( 3 );

Examples of org.exoplatform.services.jcr.impl.backup.DataRestore.commit()

      assertEquals(node1DataSize, wsQuotaManager.getNodeDataSize("/testRoot/test1"));
      assertEquals(node2DataSize, wsQuotaManager.getNodeDataSize("/testRoot/test2"));
      assertEquals(node1Quota, wsQuotaManager.getNodeQuota("/testRoot/test1"));
      assertEquals(node2Quota, wsQuotaManager.getNodeQuota("/testRoot/test2"));

      restorer.commit();
      restorer.close();

      wsQuotaManager.resume();
      assertFalse(wsQuotaManager.isSuspended());

Examples of org.exoplatform.services.jcr.impl.clean.rdbms.DBCleanerTool.commit()

            checkConent(repositoryName);

            // clean
            repositoryDBCleaner.clean();
            repositoryDBCleaner.commit();

            conn.commit();
         }
         else
         {

Examples of org.exoplatform.services.jcr.storage.WorkspaceStorageConnection.commit()

                  prop =
                     (PropertyData)conn.getItemData(parent, new QPathEntry(Constants.JCR_LOCKOWNER, 0),
                        ItemType.PROPERTY);
                  conn.delete(prop);

                  conn.commit();

                  logComment("Lock has been removed form ITEM table. Node UUID: " + nodeId);
               }
               catch (RepositoryException e)
               {

Examples of org.fcrepo.server.storage.DOWriter.commit()

            DOWriter w = doManager.getWriter(USE_DEFINITIVE_STORE,
                                             context,
                                             pid.toString());
            w.remove();
            try {
                w.commit("Purged by Fedora at startup (to be re-ingested)");
                exists = false;
            } finally {
                doManager.releaseWriter(w);
            }
        }

Examples of org.fedorahosted.cobbler.autogen.Distro.commit()

                            log.info("Updated existing Cobbler distro [" + distribution.getLabel() + "]");
                        } else {
                            log.debug("Cobbler already has distro [" + distribution.getLabel() + "]; keeping it");
                        }
                    } else {
                        desiredCobblerDistro.commit();
                        log.info("Added new distro to Cobbler: [" + distribution.getLabel() + "]");
                    }
                }
            }

Examples of org.freeplane.core.undo.IUndoHandler.commit()

  @Override
  public void commit() {
    final MapModel map = getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);
    undoHandler.commit();
  }

  public void delayedCommit() {
    final MMapModel map = (MMapModel) getController().getMap();
    final IUndoHandler undoHandler = map.getExtension(IUndoHandler.class);

Examples of org.freeplane.features.mode.ModeController.commit()

  void commit() {
      final MapModel currentMap = Controller.getCurrentController().getMap();
      LogicalStyleController.getController().refreshMap(currentMap);
      final ModeController currentModeController = Controller.getCurrentModeController();
    currentModeController.commit();
    }

  void rollback() {
      Controller.getCurrentModeController().rollback();
    }

Examples of org.fto.jthink.jdbc.JDBCTransaction.commit()

      }
      /* 执行SQ语句 */
      int[] rs = sqlExecutor.executeBatch(sqls);
      System.out.println(rs[0]+","+rs[1]);
      /* 提交事务 */
      transaction.commit();
    }catch(Exception e){
      /* 回退事务 */
      transaction.rollback();
      throw e;
    }finally{

Examples of org.fusesource.hawtdb.api.Transaction.commit()

        factory.setKeyCodec(StringCodec.INSTANCE);
        factory.setValueCodec(LongCodec.INSTANCE);
        //
        Transaction tx = pageFile.tx();
        Index<String, Long> index = factory.create(tx);
        tx.commit();
        return index;
    }

    @Override
    protected Index<String, Long> openIndex(Transaction tx) {
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.