Package bo

Examples of bo.Compresiune


    Session session = null;

    public Compresiune getCompresiuneByID(int cID) {

        Compresiune comp = null;
        List<Compresiune> compList = null;

        try {
            this.session = (Session) HibernateUtil.getSessionFactory().getCurrentSession();
            org.hibernate.Transaction tx = session.beginTransaction();
View Full Code Here


        }
        return comp;
    }

    public List<Compresiune> geCompresiuneByIDProba(int probaID) {
        Compresiune comp = null;
        List<Compresiune> compList = null;

        try {
            session = (Session) HibernateUtil.getSessionFactory().getCurrentSession();
            org.hibernate.Transaction tx = session.beginTransaction();
View Full Code Here



        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();
                if (c.getSigma().equals(sigma)) {
                    vb = 1;
                    compresiune.setIdCompresiune(c.getIdCompresiune());
                    compresiuneDao.saveOrUpdate(compresiune);
                    break;
                }
            }
            if (vb == 0) {
View Full Code Here

TOP

Related Classes of bo.Compresiune

Copyright © 2018 www.massapicom. 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.