Examples of saveOrUpdate()


Examples of daoI.IStantaDao.saveOrUpdate()

        Proba proba = probaDao.geProbaByID(Integer.parseInt(getContext().getRequest().getSession().getAttribute("idProba").toString()));
        IStantaDao stantaDao = new StantaDao();
        Stanta stanta = new Stanta(proba, Float.parseFloat(getRand1Coloana2()), Float.parseFloat(getRand2Coloana2()), null, getStantaInput(), Float.parseFloat(getTaraInput()), Float.parseFloat(getDiametruInput()), Float.parseFloat(getInaltimeInput()));
        Stanta stantaAuxiliar = stantaDao.getStantaByIDProba(proba.getIdProba());
        if (stantaAuxiliar == null) {
            stantaDao.saveOrUpdate(stanta);
        } else {
            stanta.setIdStanta(stantaAuxiliar.getIdStanta());
            stantaDao.saveOrUpdate(stanta);
        }
View Full Code Here

Examples of daoI.IStratDao.saveOrUpdate()

                    int fI = Integer.parseInt(f.toString());
                    if (fI > 0) {
                        Foraj foraj = forajDao.getForajByID(fI);
                        strat.setForaj(foraj);
                        IStratDao stratDao = new StratDao();
                        stratDao.saveOrUpdate(strat);
                    }
                }

            } catch (NumberFormatException nfe) {
                System.out.println("NumberFormatException: " + nfe.getMessage());
View Full Code Here

Examples of daoI.ITempCititaDao.saveOrUpdate()

        //obiect format pt proba curenta cu valorile introduse pt introducere in BD
        TempCitita tempCititaBO = new TempCitita(proba, valoriIntroduseTemperatura.get(0), valoriIntroduseTemperatura.get(1), valoriIntroduseTemperatura.get(2), valoriIntroduseTemperatura.get(3), valoriIntroduseTemperatura.get(4), valoriIntroduseTemperatura.get(5), valoriIntroduseTemperatura.get(6), valoriIntroduseTemperatura.get(7), valoriIntroduseTemperatura.get(8), valoriIntroduseTemperatura.get(9), valoriIntroduseTemperatura.get(10), valoriIntroduseTemperatura.get(11));
        ITempCititaDao tempCititaDao = new TempCititaDao();
        TempCitita tempCititaAuxiliar = tempCititaDao.getTempCititaByIDProba(proba.getIdProba());
        if (tempCititaAuxiliar == null) {
            tempCititaDao.saveOrUpdate(tempCititaBO);
        } else {
            tempCititaBO.setIdSedimentare(tempCititaAuxiliar.getIdSedimentare());
            tempCititaDao.saveOrUpdate(tempCititaBO);
        }
View Full Code Here

Examples of net.sourceforge.stripes.examples.bugzooky.biz.BugManager.saveOrUpdate()

    public Resolution save() {
        BugManager bm = new BugManager();

        for (Bug bug : bugs) {
            Bug newBug = populateBug(bug);
            bm.saveOrUpdate(newBug);
        }

        return new RedirectResolution("/bugzooky/BugList.jsp");
    }
View Full Code Here

Examples of net.sourceforge.stripes.examples.bugzooky.biz.ComponentManager.saveOrUpdate()

            else {
                realComponent = cm.getComponent(component.getId());
            }

            realComponent.setName(component.getName());
            cm.saveOrUpdate(realComponent);
        }

        // Then, if the user checked anyone off to be deleted, delete them
        if (deleteIds != null) {
            for (int id : deleteIds) {
View Full Code Here

Examples of net.sourceforge.stripes.examples.bugzooky.biz.PersonManager.saveOrUpdate()

     * Registers a new user, logs them in, and redirects them to the bug list page.
     */
    @DefaultHandler
    public Resolution register() {
        PersonManager pm = new PersonManager();
        pm.saveOrUpdate(this.user);
        getContext().setUser(this.user);
        getContext().getMessages().add(
                new LocalizableMessage(getClass().getName() + ".successMessage",
                                       this.user.getFirstName(),
                                       this.user.getUsername()));
View Full Code Here

Examples of org.dspace.app.cris.service.ApplicationService.saveOrUpdate()

                                String.valueOf(results.getNumFound()));
            }

            if (updated)
            {
                applicationService.saveOrUpdate(ResearcherPage.class, rp);
            }
        }
        log.info("#### END AddPMCDataToRP: -----" + new Date() + " ----- ####");
    }
View Full Code Here

Examples of org.dspace.app.cris.service.ApplicationService.saveOrUpdate()

                        ApplicationService.class);

       for (ResearcherPage rp : applicationService
                .getList(ResearcherPage.class))
        {
            applicationService.saveOrUpdate(ResearcherPage.class, rp);
        }

        for (Project grant : applicationService
                .getList(Project.class))
        {
View Full Code Here

Examples of org.dspace.app.cris.service.ApplicationService.saveOrUpdate()

        }

        for (Project grant : applicationService
                .getList(Project.class))
        {
            applicationService.saveOrUpdate(Project.class, grant);
        }
       
    }
   
View Full Code Here

Examples of org.geomajas.layer.VectorLayer.saveOrUpdate()

      securityFilter = getSecurityFilter(layer, securityContext.getCreateAuthorizedArea(layerId));
    } else {
      securityFilter = getSecurityFilter(layer, securityContext.getUpdateAuthorizedArea(layerId));
    }
    if (securityFilter.evaluate(feature)) {
      context.put(PipelineCode.FEATURE_DATA_OBJECT_KEY, layer.saveOrUpdate(feature));
      if (isCreate) {
        newFeature.setId(featureModel.getId(feature));
      }
    } else {
      if (isCreate) {
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.