Examples of update()


Examples of org.apache.jackrabbit.core.journal.Record.update()

                String msg = "No record prepared.";
                log.warn(msg);
                return;
            }
            try {
                record.update();
                setRevision(record.getRevision());
                log.debug("revision {} {}", new Long(record.getRevision()), path);
            } catch (JournalException e) {
                String msg = "Unable to commit log entry.";
                log.error(msg, e);
View Full Code Here

Examples of org.apache.jackrabbit.core.persistence.bundle.util.NodePropBundle.update()

                    if (bundle == null) {
                        throw new NoSuchItemStateException(nodeId.toString());
                    }
                    modified.put(nodeId, bundle);
                }
                bundle.update((NodeState) state);
            } else {
                PropertyId id = (PropertyId) state.getId();
                // skip redundant primaryType, mixinTypes and uuid properties
                if (id.getName().equals(NameConstants.JCR_PRIMARYTYPE)
                    || id.getName().equals(NameConstants.JCR_MIXINTYPES)
View Full Code Here

Examples of org.apache.jackrabbit.core.persistence.pool.util.NodePropBundle.update()

                    if (bundle == null) {
                        throw new NoSuchItemStateException(nodeId.toString());
                    }
                    modified.put(nodeId, bundle);
                }
                bundle.update((NodeState) state);
            } else {
                PropertyId id = (PropertyId) state.getId();
                // skip redundant primaryType, mixinTypes and uuid properties
                if (id.getName().equals(NameConstants.JCR_PRIMARYTYPE)
                    || id.getName().equals(NameConstants.JCR_MIXINTYPES)
View Full Code Here

Examples of org.apache.jackrabbit.core.persistence.util.NodePropBundle.update()

                    if (bundle == null) {
                        throw new NoSuchItemStateException(nodeId.toString());
                    }
                    modified.put(nodeId, bundle);
                }
                bundle.update((NodeState) state);
            } else {
                PropertyId id = (PropertyId) state.getId();
                // skip redundant primaryType, mixinTypes and uuid properties
                if (id.getName().equals(JCR_PRIMARYTYPE)
                    || id.getName().equals(JCR_MIXINTYPES)
View Full Code Here

Examples of org.apache.jackrabbit.core.state.SessionItemStateManager.update()

                // dispose the transient state, it is no longer used
                stateMgr.disposeTransientItemState(transientState);
            }

            // end update operation
            stateMgr.update();
            // update operation succeeded
            succeeded = true;
        } catch (StaleItemStateException e) {
            throw new InvalidItemStateException(
                    "Unable to update a stale item: " + this, e);
View Full Code Here

Examples of org.apache.jackrabbit.core.state.UpdatableItemStateManager.update()

                }
                propState.setValues(new InternalValue[] { InternalValue.create(isDeep) });
                nodeState.addPropertyName(NameConstants.JCR_LOCKISDEEP);
                stateMgr.store(nodeState);

                stateMgr.update();
                success = true;
            } catch (ItemStateException e) {
                throw new RepositoryException("Error while creating lock.", e);
            } finally {
                if (!success) {
View Full Code Here

Examples of org.apache.jackrabbit.ocm.manager.ObjectContentManager.update()

            newB.setB1("new B1");
            newB.setB2("new B2");
            a.setB(newB);
           
           
            ocm.update(a);
            ocm.save();

            // --------------------------------------------------------------------------------
            // Get the object
            // --------------------------------------------------------------------------------          
View Full Code Here

Examples of org.apache.jackrabbit.ocm.manager.beanconverter.BeanConverter.update()

        beanConverter.remove(session, objectNode, beanDescriptor, mapper.getClassDescriptorByClass(beanClass), bean, classDescriptor, object);

      } else
      {
        beanConverter.update(session, objectNode, beanDescriptor, mapper.getClassDescriptorByClass(beanClass), bean, classDescriptor, object);
      }

    }
  }
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.VltEntryInfo.update()

    private FileAction doAdd(boolean force) throws VltException {
        assert entry == null;
        entry = parent.getEntries().update(getName(), null, null);
        VltEntryInfo work = entry.create(VltEntryInfo.Type.WORK);
        try {
            work.update(file, true);
        } catch (IOException e) {
            throw exception("Error while adding file", e);
        }
        String contentType = MimeTypes.getMimeType(file.getName(), MimeTypes.APPLICATION_OCTET_STREAM);
        work.setContentType(contentType);
View Full Code Here

Examples of org.apache.jackrabbit.vault.vlt.meta.xml.zip.UpdateableZipFile.update()

        UpdateableZipFile testZip = new UpdateableZipFile(new File("test.zip"));
        for (int i=0; i<100; i++) {
            String name = testFile.getName() + i;
            System.out.println("adding " + name);
            testZip.update(name, new FileInputStream(testFile));
            testZip.sync();
        }
        testZip.update("test.dat50", new FileInputStream(testFile));
        testZip.delete("test.dat1");
        testZip.close();
View Full Code Here
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.