Package model

Examples of model.Epreuve


        WebContext ctx = WebContextFactory.get();
        ServletContext servletContext = ctx.getServletContext();
        IEpreuveDAO dao = (IEpreuveDAO) servletContext.getAttribute("epreuveDAO");

        // récupération de l'objet produit
        Epreuve ep = dao.getEpreuveInd(id);

        // ajout au panier
        lePanier.ajouter(ep, 1);
        return lePanier;
    }
View Full Code Here


        WebContext ctx = WebContextFactory.get();
        ServletContext servletContext = ctx.getServletContext();
        IEpreuveDAO dao = (IEpreuveDAO) servletContext.getAttribute("epreuveDAO");

        // récupération de l'objet produit
        Epreuve ep = dao.getEpreuveEQ(id);

        // ajout au panier
        lePanier.ajouter(ep, 1);
        return lePanier;
    }
View Full Code Here

      public Epreuve getNomCatEpreuveInd(int IdEp) throws DAOException {
        String req = String.format(reqNomCatEpreuveInd, IdEp);
        Connection conn = null;
        Statement stmt = null;
        ResultSet result = null;
        Epreuve nomCatEpreuveInd =new Epreuve();
        try {
            synchronized (dataSource) {
                conn = dataSource.getConnection();
            }
            stmt = conn.createStatement();
            System.out.println(req);
            result = stmt.executeQuery(req);

            while (result.next()) {
             nomCatEpreuveInd.setNomEtCategorie(result.getString(2), result.getString(3));
        }
            result.close();
            stmt.close();
           return nomCatEpreuveInd;
              } catch (SQLException ex) {
View Full Code Here

    public Epreuve getNomCatEpreuveEq(int IdEp) throws DAOException {
        String req = String.format(reqNomCatEpreuveEq, IdEp);
        Connection conn = null;
        Statement stmt = null;
        ResultSet result = null;
        Epreuve nomCatEpreuveEq =new Epreuve();
        try {
            synchronized (dataSource) {
                conn = dataSource.getConnection();
            }
            stmt = conn.createStatement();
            System.out.println(req);
            result = stmt.executeQuery(req);
          
            while (result.next()) {
             nomCatEpreuveEq.setNomEtCategorie(result.getString(2), result.getString(3));

                       // nomCatEpreuveEq = new Epreuve(result.getString(1), result.getString(1));
//                nomCatEpreuveEq.getNom()= result.getString(2);
//                nomCatEpreuveEq.getCategorie();
            //nomCatEpreuveEq.add(new Epreuve(result.getString(2), result.getString(3)));
View Full Code Here

            stmt = conn.createStatement();
            System.out.println(req);
            result = stmt.executeQuery(req);

            while (result.next()) {
                epreuves.add(new Epreuve(result.getInt(3), nomD, result.getString(1), result.getString(2), "Indiv."));
            }
            result.close();
            stmt.close();
            return epreuves;
        } catch (SQLException ex) {
View Full Code Here

            stmt = conn.createStatement();
            System.out.println(req);
            result = stmt.executeQuery(req);
        
            while (result.next()) {
                epreuves.add(new Epreuve(result.getInt(3), nomD, result.getString(1), result.getString(2), "Par équipe"));
            }
            result.close();
            stmt.close();
            return epreuves;
        } catch (SQLException ex) {
View Full Code Here

            stmt = conn.createStatement();
            System.out.println(req);
            ResultSet result = stmt.executeQuery(req);

            while (result.next()) {
                epreuves.add(new Epreuve(result.getInt(3), nomD, result.getString(1), result.getString(2), "Individuelle"));
            }
            result.close();
            stmt.close();
            return epreuves;
        } catch (SQLException ex) {
View Full Code Here

            stmt = conn.createStatement();
            System.out.println(req);
            result = stmt.executeQuery(req);

            while (result.next()) {
                epreuves.add(new Epreuve(result.getInt(3), nomD, result.getString(1), result.getString(2), "Par équipe"));
            }
            result.close();
            stmt.close();
            return epreuves;
        } catch (SQLException ex) {
View Full Code Here

        String genre = rs.getString(7);
        //String description = rs.getString(6);
//        if (categorie == CategoriesProduit.FORMATION) {
//            return new Formation(id, categorie,codeMarque, description, prixUHT, tauxTVA);
//        } else {
        return new Epreuve(id, nomD, nom, genre, "Individuelle" );
        //}

    }
View Full Code Here

        String genre = rs.getString(7);
        //String description = rs.getString(6);
//        if (categorie == CategoriesProduit.FORMATION) {
//            return new Formation(id, categorie,codeMarque, description, prixUHT, tauxTVA);
//        } else {
        return new Epreuve(id, nomD, nom, genre, "Par équipe" );
        //}

    }
View Full Code Here

TOP

Related Classes of model.Epreuve

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.