Examples of commit()


Examples of org.apache.jackrabbit.oak.api.Root.commit()

                    // some external template implementation, copy before proceeding
                    template = new NodeTypeTemplateImpl(getNamePathMapper(), ntd);
                }
                template.writeTo(tree, allowUpdate);
            }
            root.commit();

            refresh();

            List<NodeType> types = new ArrayList<NodeType>(ntds.length);
            for (NodeTypeDefinition ntd : ntds) {

Examples of org.apache.jackrabbit.oak.core.RootImpl.commit()

            String anonymousId = params.getConfigValue(PARAM_ANONYMOUS_ID, DEFAULT_ANONYMOUS_ID);
            if (userManager.getAuthorizable(anonymousId) == null) {
                userManager.createUser(anonymousId, null);
            }
            if (root.hasPendingChanges()) {
                root.commit();
            }
        } catch (RepositoryException e) {
            log.error(errorMsg, e);
            throw new RuntimeException(e);
        } catch (CommitFailedException e) {

Examples of org.apache.jackrabbit.oak.core.SystemRoot.commit()

            String anonymousId = Strings.emptyToNull(params.getConfigValue(PARAM_ANONYMOUS_ID, DEFAULT_ANONYMOUS_ID, String.class));
            if (anonymousId != null && userManager.getAuthorizable(anonymousId) == null) {
                userManager.createUser(anonymousId, null);
            }
            if (root.hasPendingChanges()) {
                root.commit();
            }
        } catch (RepositoryException e) {
            log.error(errorMsg, e);
            throw new RuntimeException(e);
        } catch (CommitFailedException e) {

Examples of org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.commit()

                    // ready for restore
                    VersionDelegate vd = versionManagerDelegate.getVersionByIdentifier(
                            version.getIdentifier());
                    versionManagerDelegate.restore(
                            parent, PathUtils.getName(oakPath), vd);
                    sessionDelegate.commit();
                    success = true;
                } catch (CommitFailedException e) {
                    throw e.asRepositoryException();
                } finally {
                    if (!success) {

Examples of org.apache.jackrabbit.oak.plugins.document.DocumentMK.commit()

                @Override
                public String call() throws Exception {
                    // commit all statements, one at a time
                    String r = null;
                    for (String stmt : stmts) {
                        r = mk.commit("/", stmt, null, "msg");
                    }
                    return r;
                }
            };
            cs.add(c);

Examples of org.apache.jackrabbit.ocm.transaction.jackrabbit.UserTransactionImpl.commit()

      // add node and save
      Node root = session.getRootNode();
      Node n = root.addNode("test");
      root.save();
      utx.commit();
     
      assertTrue("test node doesn't exist", session.itemExists("/test"));
     
      utx = new UserTransactionImpl(session);
      utx.begin();

Examples of org.apache.jackrabbit.vault.fs.api.VaultFsTransaction.commit()

        // do commit (assuming all files from the same repo)
        ctx.printMessage("Transmitting file data...");
        List<TransactionImpl.Info> txInfos;
        try {
            txInfos = new ArrayList<TransactionImpl.Info>(tx.commit());
        } catch (Exception e) {
            throw new VltException("Error while committing", e);
        }
        // sort them deepest first
        Collections.sort(txInfos, new Comparator<TransactionImpl.Info>(){

Examples of org.apache.jetspeed.components.persistence.store.Transaction.commit()

        {
            Transaction tx = persistentStore.getTransaction();
            tx.begin();
            persistentStore.makePersistent(rule);
            persistentStore.lockForWrite(rule);
            tx.commit();           
        }
        catch (Exception e)
        {
            throw new ProfilerException("failed to store: " + rule.getId(), e);
        }

Examples of org.apache.juddi.datastore.DataStore.commit()

      // nothing that requires validation has been identified

      // set the PublisherAssertions
      Vector savedAssertionsVector = dataStore.setAssertions(publisherID,assertionVector);

      dataStore.commit();

      PublisherAssertions assertions = new PublisherAssertions();
      assertions.setGeneric(generic);
      assertions.setOperator(Config.getOperator());
      assertions.setPublisherAssertionVector(savedAssertionsVector);

Examples of org.apache.juddi.util.jdbc.Transaction.commit()

        FindTModelByNameQuery.select(name,keysIn,null,connection);
        FindTModelByNameQuery.select(name,null,null,connection);

        // commit the transaction
        txn.commit();
      }
      catch(Exception ex)
      {
        try { txn.rollback(); }
        catch(java.sql.SQLException sqlex) { sqlex.printStackTrace(); }
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.