Examples of saveOrUpdate()


Examples of com.common.platform.solr.client.search.SearchService.saveOrUpdate()

        searchService.setStoreName(this.indexStoreName);
       
        // 索引MAP数据结构
        if(null != indexDataList && !indexDataList.isEmpty()){
            // 调用搜索引擎接口
            boolean isSuccess = searchService.saveOrUpdate(indexDataList);
            if(isSuccess){
                // 更新已索引资源状态
                IndexTasksRequest taskRequest = new IndexTasksRequest();
                taskRequest.updateIndexedStatus(indexDataList);
            }
View Full Code Here

Examples of com.common.platform.solr.client.search.impl.SearchServiceImpl.saveOrUpdate()

        searchService.setStoreName(this.indexStoreName);
       
        // 索引MAP数据结构
        if(null != indexDataList && !indexDataList.isEmpty()){
            // 调用搜索引擎接口
            boolean isSuccess = searchService.saveOrUpdate(indexDataList);
            if(isSuccess){
                // 更新已索引资源状态
                IndexTasksRequest taskRequest = new IndexTasksRequest();
                taskRequest.updateIndexedStatus(indexDataList);
            }
View Full Code Here

Examples of com.pv.mf.db.mock.impl.MockBuilder.saveOrUpdate()

      User user = builder.getMock(User.class);
     
      user.setUserName(userName);
      user.setPassword(password);
     
      builder.saveOrUpdate();
   }
  
   public void delete(String username) {
     
      MockBuilder builder = _annotationFactory.createBuilder();
View Full Code Here

Examples of dao.AdminDao.saveOrUpdate()

    public Resolution submitDatePersonale() {
        IAdminDao adminDao = new AdminDao();
        Admin adminC = getAdmin();
        if (adminC.getParola().equals(getParolaVeche())) {
            adminDao.saveOrUpdate(adminC);
        } else {
            byte[] parolaB = adminC.getParola().getBytes();
            try {
                MessageDigest algorithm = MessageDigest.getInstance("MD5");
                algorithm.reset();
View Full Code Here

Examples of dao.AmplasamentDao.saveOrUpdate()

        amplasament.setOras(oras);
        amplasament.setLocatie(getLocatie());
        amplasament.setIdGeolog(getIdGeologLogat());
        setAmplasamentAdaugat(true);
        IAmplasamentDao amplasamentDao = new AmplasamentDao();
        amplasamentDao.saveOrUpdate(amplasament);
        return new ForwardResolution("/WEB-INF/jsp/adaugaAmplasament.jsp");
    }

    public List<Beneficiar> getBeneficiari() {
        List<Beneficiar> beneficiari = new ArrayList<Beneficiar>();
View Full Code Here

Examples of dao.BeneficiarDao.saveOrUpdate()

            } else if (!isNumeric(cnp)) {
                setCnpIncorect(true);
                return new ForwardResolution("/WEB-INF/jsp/adaugaBeneficiar.jsp");
            }
            Beneficiar beneficiar = new Beneficiar(nume, cnp, mentiuni, null);
            beneficiarDao.saveOrUpdate(beneficiar);
            Beneficiar bAux = beneficiarDao.getBeneficiarCnp(cnp);
            int idGeolog = getIdGeologLogat();
            IGeologBeneficiarDao geologBeneficiarDao = new GeologBeneficiarDao();
            geologBeneficiarDao.saveOrUpdate(new GeologBeneficiar(idGeolog, bAux.getIdBeneficiar()));
            setBeneficiarAdaugat(true);
View Full Code Here

Examples of dao.CitiriAreometruDao.saveOrUpdate()

        CitiriAreometru citireAreometruBO = new CitiriAreometru(proba, valoriIntroduseAreometru.get(0), valoriIntroduseAreometru.get(1), valoriIntroduseAreometru.get(2), valoriIntroduseAreometru.get(3), valoriIntroduseAreometru.get(4), valoriIntroduseAreometru.get(5), valoriIntroduseAreometru.get(6), valoriIntroduseAreometru.get(7), valoriIntroduseAreometru.get(8), valoriIntroduseAreometru.get(9), valoriIntroduseAreometru.get(10), valoriIntroduseAreometru.get(11));
        ICitiriAreometruDao citiriAreometruDao = new CitiriAreometruDao();
        CitiriAreometru citiriAreometruAuxiliar = citiriAreometruDao.getCitiriAreometruByIDProba(proba.getIdProba());
        if (citiriAreometruAuxiliar == null) {
            citiriAreometruDao.saveOrUpdate(citireAreometruBO);
        } else {
            citireAreometruBO.setIdSedimentare(citiriAreometruAuxiliar.getIdSedimentare());
            citiriAreometruDao.saveOrUpdate(citireAreometruBO);
        }
View Full Code Here

Examples of dao.CompresibilitateDao.saveOrUpdate()

                return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
            } else {
                Date data = Date.valueOf(getAn_nou() + "-" + getLuna_nou() + "-" + getZi_nou());
                Time timp = new Time(Integer.parseInt(getOra_nou()), Integer.parseInt(getMinut_nou()), 0);
                Compresibilitate comp = new Compresibilitate(proba, data, timp, Float.parseFloat(getSarcina_nou()), Float.parseFloat(getCitire_nou()));
                compDao.saveOrUpdate(comp);
            }
        } else if (getButonRadio().equals("2")) {
            if ((getOra_modif() == null) || (getMinut_modif() == null) || (getSarcinaFilter() == null) || (getCitire_modif() == null) || (getDataFilter() == null)) {
                setCampuriNecompletate(true);
                return new ForwardResolution("/WEB-INF/jsp/compresibilitate.jsp");
View Full Code Here

Examples of dao.CompresiuneDao.saveOrUpdate()

        String sigma = getSarcina1() + "-" + getSarcina2();
        ICompresiuneDao compresiuneDao = new CompresiuneDao();
        Compresiune compresiune = new Compresiune(proba, sigma);
        List<Compresiune> compresiuneAuxiliar = compresiuneDao.geCompresiuneByIDProba(proba.getIdProba());
        if (compresiuneAuxiliar == null) {
            compresiuneDao.saveOrUpdate(compresiune);
        } else {
            int vb = 0;
            Iterator it = compresiuneAuxiliar.iterator();
            while (it.hasNext()) {
                Compresiune c = (Compresiune) it.next();
View Full Code Here

Examples of dao.ForajDao.saveOrUpdate()

            try {
                int amplasamentID = Integer.parseInt(amplasamentFilter);
                Amplasament amplasament = amplasamentDao.getAmplasamentByID(amplasamentID);
                foraj.setAmplasament(amplasament);
                IForajDao forajDao = new ForajDao();
                forajDao.saveOrUpdate(foraj);
                setIdAmplasamentCurent(amplasamentID);
                getContext().getRequest().getSession(true).setAttribute("idAmplasamentCurent", amplasamentID);
            } catch (NumberFormatException nfe) {
                System.out.println("NumberFormatException: " + nfe.getMessage());
                return new ForwardResolution("/WEB-INF/jsp/adaugaForaj.jsp");
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.