Examples of save()


Examples of org.jongo.MongoCollection.save()

            }
        }).build();
        Jongo jongo = new Jongo(getDatabase(), mapper);
        MongoCollection friends = jongo.getCollection("friends");
        Friend friend = new Friend("Peter", "31 rue des Lilas");
        friends.save(friend);

        friends.update(friend.getId()).with(new Friend("John"));

        Friend updated = friends.findOne().as(Friend.class);
        assertThat(updated.getName()).isEqualTo("John");
View Full Code Here

Examples of org.jostraca.util.PropertySet.save()

        tmps.set( Property.jostraca_template_properties,
                  Tools.normaliseTemplatePropertySet( pTemplate.getPropertySet( CONF_template ) ) );

        //t.track( "saveMetaData.pPropertySet.size", pPropertySet.size() );

        tmps.save( metaFile );
        tm.setMetaFile( metaFile );
      }
      catch( Exception e ) {
        throw ProcessException.CODE_save_meta( new ValueSet( ValueCode.FILE, metaFile ), e );
      }
View Full Code Here

Examples of org.jsynthlib.xmldevice.XmlBankDriverSpecDocument.save()

            driverSpec.setSingleSize(getField("singleSize", int.class,
                    bankDriver, AbstractBankDriver.class));
        }

        properties.put(newDriverKey(), driver.getClass().getSimpleName());
        document.save(new File(outDir, driver.getClass().getSimpleName()
                + ".xml"));
    }

    String newDriverKey() {
        return "driver" + driverIndex++;
View Full Code Here

Examples of org.jsynthlib.xmldevice.XmlPatchDriverSpecDocument.save()

        if (sysexWidgets.size() > 0) {
            for (SysexWidget sysexWidget : sysexWidgets) {
                handleSysexWidget(patchEditor, sysexWidget);
            }
            properties.put(newDriverKey(), driver.getClass().getSimpleName());
            document.save(new File(outDir, driver.getClass().getSimpleName()
                    + ".xml"));
        }
    }

    void addGenericFields(IDriver driver, XmlDriverSpec driverSpec,
View Full Code Here

Examples of org.jwildfire.base.mathlib.Complex.Save()

    /* polylogarithm by dark-beam */
    // approx (very good) of Li[n](z) for n > 1
    double vv = pAmount;
    Complex z = new Complex(pAffineTP.x, pAffineTP.y);
    z.Pow(zpow);
    z.Save();
    if (z.Mag2() > 250000.0 || N >= 20) { // no convergence, or N too big... When N is big then Li tends to z
      pVarTP.x += vv * z.re;
      pVarTP.y += vv * z.im;
      return;
    }
View Full Code Here

Examples of org.kuali.rice.kew.doctype.service.DocumentTypeService.save()

  public String updatePostProcessorName(String docTypeName, String replacement) {
    DocumentTypeService documentTypeService = GlobalResourceLoader.getService("enDocumentTypeService");
    DocumentType docTypeObj = DocumentType.from(documentTypeService.findByName(docTypeName));
    String originalPostProcessorName = docTypeObj.getPostProcessorName();
    docTypeObj.setPostProcessorName(replacement);
    documentTypeService.save(docTypeObj);
   
    return originalPostProcessorName;
  }
 
  /**
 
View Full Code Here

Examples of org.libreplan.business.resources.daos.IResourceDAO.save()

                criterionServiceMock
                        .findByType(PredefinedCriterionTypes.LOCATION))
                .andReturn(criterions).anyTimes();
        expect(resourceDAOMock.find(workerToReturn.getId()))
                .andReturn(workerToReturn);
        resourceDAOMock.save(workerToReturn);
        workerToReturn.checkNotOverlaps();
        replay(resourceDAOMock, criterionServiceMock);
        // perform actions
        WorkerModel workerModel = new WorkerModel(resourceDAOMock,
                criterionServiceMock);
View Full Code Here

Examples of org.libreplan.web.resources.worker.WorkerModel.save()

        // perform actions
        WorkerModel workerModel = new WorkerModel(resourceDAOMock,
                criterionServiceMock);

        workerModel.prepareEditFor(workerToReturn);
        workerModel.save();
    }

    @Ignore
    @Test(expected = IllegalStateException.class)
    @Transactional
View Full Code Here

Examples of org.libvirt.Domain.save()

    }

    public int domainSave(String domainName, String toPath) throws LibvirtException {
        Domain domain = getDomain(domainName);
        try {
            domain.save(toPath);
            return SUCCESS;
        } finally {
            domain.free();
        }
    }
View Full Code Here

Examples of org.lightadmin.core.persistence.repository.DynamicJpaRepository.save()

        FileReferenceProperties fileReferenceProperties = fileReferencePropertiesContext.get();
        try {
            persistentEntity.doWithProperties(new FileReferencePropertiesSaveHandler(entity, fileReferenceProperties));

            repository.save(entity);
        } finally {
            fileReferencePropertiesContext.remove();
        }
    }
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.