- Timestamp:
- 03/09/12 13:18:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ether_ndacc/trunk/persistence/implementation/com/ether/dao/plot/PlotDAOImpl.java
r105 r405 41 41 return selectAllByCriteria(String.class, criteria); 42 42 } 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 } 43 64 44 65 @Nullable … … 86 107 } 87 108 88 @Nullable 109 110 @Nullable 89 111 public List<Date> getListeDistinctDates() 90 112 throws PersistenceException
Note: See TracChangeset
for help on using the changeset viewer.