Ignore:
Timestamp:
04/26/10 19:12:49 (14 years ago)
Author:
cbipsl
Message:

maj eccad V3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_eccad/trunk/ECCAD_INTERFACE/WEB-INF/src/org/medias/eccad/persistance/jdbc/ProduitDAOjdbc.java

    r68 r70  
    1010 
    1111import org.medias.eccad.helpers.CharactereHelper; 
    12 import org.medias.eccad.helpers.LoggerPerso; 
    1312import org.medias.eccad.modele.Produit; 
    1413import org.medias.eccad.persistance.jdbc.SGBD_jdbc; 
     
    3433                try { 
    3534                        requete = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); 
    36                         sql = "select distinct id_produit, title_produit, begintime_produit, endtime_produit, header_produit from produit join grille using (id_produit) where id_param = " + id_param + ";"; 
    37                          
     35                        sql = "select distinct id_produit, title_produit, begintime_produit, endtime_produit, header_produit, order_produit from produit join grille using (id_produit) where id_param = " + id_param + " order by order_produit;"; 
    3836                        ResultSet resultat = requete.executeQuery(sql); 
    3937                         
     
    5553                } 
    5654                 
    57                 LoggerPerso.log(SGBD_jdbc.class, LoggerPerso.DEBUG, "getListProduit::taille::"+liste_param.size()+"\nSQL::" + sql); 
    5855                return liste_param; 
    5956        } 
     
    8986                try { 
    9087                        requete = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); 
    91                         sql = "select distinct id_produit, title_produit, begintime_produit, endtime_produit, header_produit, temporalRes_produit, name_typeproduit from produit join typeproduit using (id_typeproduit) where id_produit = " + id_produit + ";"; 
     88                        sql = "select distinct id_produit, title_produit, begintime_produit" + 
     89                                        ", endtime_produit, header_produit, temporalRes_produit, name_typeproduit" + 
     90                                        ", textcitation_produit, useconst_produit, informpub_produit" + 
     91                                        " from produit join typeproduit using (id_typeproduit)" + 
     92                                        " where id_produit = " + id_produit + ";"; 
    9293                         
    9394                        ResultSet resultat = requete.executeQuery(sql); 
     
    101102                                produit.setTemporalres(CharactereHelper.getEncodage(resultat.getString("temporalRes_produit"), "ISO-8859-1")); 
    102103                                produit.setType(CharactereHelper.getEncodage(resultat.getString("name_typeproduit"), "ISO-8859-1")); 
     104                                produit.setCitation(CharactereHelper.getEncodage(resultat.getString("textcitation_produit"), "ISO-8859-1")); 
     105                                produit.setUseconst(CharactereHelper.getEncodage(resultat.getString("useconst_produit"), "ISO-8859-1")); 
     106                                produit.setInformpub(CharactereHelper.getEncodage(resultat.getString("informpub_produit"), "ISO-8859-1")); 
    103107                        } 
    104108                } 
     
    109113                        closeConnection(); 
    110114                } 
    111                 LoggerPerso.log(SGBD_jdbc.class, LoggerPerso.DEBUG, "getProduitById::nom::"+ produit.getNom() + "::date::" + produit.getBeginDate()); 
     115//              LoggerPerso.log(SGBD_jdbc.class, LoggerPerso.DEBUG, "getProduitById::nom::"+ produit.getNom() + "::date::" + produit.getBeginDate()); 
    112116 
    113117                return produit; 
     
    122126                try { 
    123127                        requete = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); 
    124                         sql = "select distinct id_produit, title_produit, begintime_produit, endtime_produit, header_produit from produit join lienproduit using (id_produit) "; 
     128                        sql = "select distinct id_produit, title_produit, begintime_produit, endtime_produit, header_produit from produit join lienproduit using (id_produit)"; 
    125129                         
    126130                        if (id_produit != null) { 
     
    149153                } 
    150154                 
    151                 LoggerPerso.log(SGBD_jdbc.class, LoggerPerso.DEBUG, "getListProductByLink::taille::"+liste_produit.size()); 
     155//              LoggerPerso.log(SGBD_jdbc.class, LoggerPerso.DEBUG, "getListProductByLink::taille::"+liste_produit.size()); 
    152156                return liste_produit; 
    153157        } 
Note: See TracChangeset for help on using the changeset viewer.