Examples of persist()


Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.Document.persist()

            version.persist();
            so = version; // return the version and not the version series to caller
        } else {
          Document doc = objectStore.createDocument(name, propMap, user, folder, addACEs, removeACEs);
          doc.setContent(contentStream, false);
            doc.persist();
            so = doc;
        }

        return so;
    }
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.DocumentVersion.persist()

        // Now we are sure to have document type definition:
        if (((DocumentTypeDefinition) typeDef).isVersionable()) {
          DocumentVersion version = objectStore.createVersionedDocument(name,  propMap,
                user, folder, addACEs, removeACEs, contentStream, versioningState);
            version.persist();
            so = version; // return the version and not the version series to caller
        } else {
          Document doc = objectStore.createDocument(name, propMap, user, folder, addACEs, removeACEs);
          doc.setContent(contentStream, false);
            doc.persist();
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.Folder.persist()

        ObjectStore objStore = fStoreManager.getObjectStore(repositoryId);
        Folder newFolder = objStore.createFolder(folderName, properties.getProperties(), user, parent,
    addACEs,  removeACEs);
        LOG.debug("stop createFolder()");
        newFolder.persist();
        return newFolder;
    }

    private StoredObject createPolicyIntern(CallContext context, String repositoryId, Properties properties, String folderId,
            List<String> policies, Acl addAces, Acl removeAces, ExtensionsData extension) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.StoredObject.persist()

            if (user == null) {
                user = "unknown";
            }
            so.updateSystemBasePropertiesWhenModified(properties.getProperties(), user);
            // set changeToken
            so.persist();
        }

        if (hasUpdatedName || hasUpdatedOtherProps) {
            objectId.setValue(so.getId()); // might have a new id
            if (null != changeToken) {
View Full Code Here

Examples of org.apache.chemistry.opencmis.inmemory.storedobj.api.VersionedDocument.persist()

            DocumentVersion version = verDoc.addVersion(contentStream, versioningState, user);
            if (null != folder)
                folder.addChildDocument(verDoc); // add document to folder and
            // set parent in doc
            else
                verDoc.persist();
            version.createSystemBasePropertiesWhenCreated(propMap, user);
            version.setCustomProperties(propMap);
            version.persist();
            so = version; // return the version and not the version series to
            // caller
View Full Code Here

Examples of org.apache.cloudstack.engine.datacenter.entity.api.ClusterEntityImpl.persist()

    @Override
    public ClusterEntity registerCluster(String clusterUuid, String name, String owner, List<String> tags, Map<String, String> details) {
        ClusterEntityImpl clusterEntity = new ClusterEntityImpl(clusterUuid, manager);
        clusterEntity.setOwner(owner);
        clusterEntity.setName(name);
        clusterEntity.persist();
        return clusterEntity;
    }

    @Override
    public HostEntity registerHost(String hostUuid, String name, String owner, List<String> tags, Map<String, String> details) {
View Full Code Here

Examples of org.apache.cloudstack.engine.datacenter.entity.api.HostEntityImpl.persist()

        HostEntityImpl hostEntity = new HostEntityImpl(hostUuid, manager);
        hostEntity.setOwner(owner);
        hostEntity.setName(name);
        hostEntity.setDetails(details);

        hostEntity.persist();
        return hostEntity;
    }

    @Override
    public void deregisterStorage(String uuid) {
View Full Code Here

Examples of org.apache.cloudstack.engine.datacenter.entity.api.PodEntityImpl.persist()

    @Override
    public PodEntity registerPod(String podUuid, String name, String owner, String zoneUuid, List<String> tags, Map<String, String> details) {
        PodEntityImpl podEntity = new PodEntityImpl(podUuid, manager);
        podEntity.setOwner(owner);
        podEntity.setName(name);
        podEntity.persist();
        return podEntity;
    }

    @Override
    public ClusterEntity registerCluster(String clusterUuid, String name, String owner, List<String> tags, Map<String, String> details) {
View Full Code Here

Examples of org.apache.cloudstack.engine.datacenter.entity.api.ZoneEntityImpl.persist()

    public ZoneEntity registerZone(String zoneUuid, String name, String owner, List<String> tags, Map<String, String> details) {
        ZoneEntityImpl zoneEntity = new ZoneEntityImpl(zoneUuid, manager);
        zoneEntity.setName(name);
        zoneEntity.setOwner(owner);
        zoneEntity.setDetails(details);
        zoneEntity.persist();
        return zoneEntity;
    }

    @Override
    public PodEntity registerPod(String podUuid, String name, String owner, String zoneUuid, List<String> tags, Map<String, String> details) {
View Full Code Here

Examples of org.apache.openjpa.kernel.Broker.persist()

    }

    protected Object persist(Object ob) {
        Broker broker = getBrokerFactory().newBroker();
        broker.begin();
        broker.persist(ob, null);
        Object id = broker.getObjectId(ob);
        broker.commit();
        broker.close();
        return id;
    }
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.