Ignore:
Timestamp:
03/09/12 13:18:57 (12 years ago)
Author:
rboipsl
Message:

ajout realtime ecc ohp

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_ndacc/trunk/persistence/implementation/com/ether/dao/plot/PlotDAOImpl.java

    r105 r405  
    4141                return selectAllByCriteria(String.class, criteria); 
    4242        } 
     43 
     44    @Nullable 
     45    public List<String> getPlotsByDateByInstrumentByStationByType(@NotNull final String instrument, @NotNull final Date pFormatDate_deb, @NotNull final Date pFormatDate_fin, @NotNull final String station, @NotNull final String type) 
     46            throws PersistenceException 
     47        { 
     48            String vtype = type; 
     49 
     50            final DetachedCriteria criteria = DetachedCriteria.forClass(Plot.class,"plot") 
     51                .addOrder(Order.asc("plot.name")) 
     52                .add(Restrictions.ge("datedeb", pFormatDate_deb)) 
     53                .add(Restrictions.lt("datedeb", pFormatDate_fin)) 
     54                .createCriteria("instrument","instrument").add(Restrictions.ilike("instrument.name",instrument,MatchMode.ANYWHERE)) 
     55                .createCriteria("station","station").add(Restrictions.ilike("station.name",station,MatchMode.ANYWHERE)) 
     56                .add(Restrictions.ilike("plot.name",vtype,MatchMode.ANYWHERE)); 
     57 
     58 
     59            //select pl_name de nd_plot 
     60            criteria.setProjection(Projections.property("plot.name")); 
     61 
     62            return selectAllByCriteria(String.class, criteria); 
     63        } 
    4364 
    4465        @Nullable 
     
    86107        } 
    87108 
    88         @Nullable 
     109 
     110    @Nullable 
    89111        public List<Date> getListeDistinctDates()  
    90112                throws PersistenceException  
Note: See TracChangeset for help on using the changeset viewer.