Package dao

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


            while (it.hasNext()) {
                Compresiune c = (Compresiune) it.next();
                if (c.getSigma().equals(sigma)) {
                    vb = 1;
                    compresiune.setIdCompresiune(c.getIdCompresiune());
                    compresiuneDao.saveOrUpdate(compresiune);
                    break;
                }
            }
            if (vb == 0) {
                compresiuneDao.saveOrUpdate(compresiune);
View Full Code Here

                    compresiuneDao.saveOrUpdate(compresiune);
                    break;
                }
            }
            if (vb == 0) {
                compresiuneDao.saveOrUpdate(compresiune);
            }
        }
        List<Compresiune> compresiuni = compresiuneDao.geCompresiuneByIDProba(proba.getIdProba());
        List<String> sigmaList = new ArrayList<String>();
        Iterator it = compresiuni.iterator();
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.