Package dao

Examples of dao.DisciplineDAO


      @Override
    public void init() throws ServletException {
        try {
            Context init = new InitialContext();
            DataSource dataSource = (DataSource) init.lookup("java:comp/env/jdbc/iphitosbd");
            DisciplineDAO discDAO = new DisciplineDAO(dataSource);
            getServletContext().setAttribute("disciplines",discDAO.getDisciplines());
        } catch (Exception ex) {
            Logger.getLogger(InitListeDisciplineServlet.class.getName()).log(Level.SEVERE, null, ex);
            throw new ServletException("problème lors de l'initialisation de la source de données ",
                    ex);
        }
View Full Code Here


            //liste de pays
            SportifDAO spDAO = new SportifDAO(dataSource);
            List<Sportif> listePays=spDAO.loadlistePays();


            DisciplineDAO dDao = new DisciplineDAO(dataSource);
            List<Discipline> disciplines = dDao.getDisciplines();
           
//            EpreuveDAO epDAO = new EpreuveDAO(dataSource);
            EpreuveDAO epDAO = new EpreuveDAO(dataSource);
            for (Discipline d : disciplines) {
                d.setEpreuvesInd(epDAO.getEpreuvesInd(d.getNom()));
View Full Code Here

TOP

Related Classes of dao.DisciplineDAO

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.