+
+ /*
+ * query: jobs and sequence at date
+ */
+ public List<DataBase> readJobByDay (String date) {
+ System.out.println(date);
+ if (null == date) {
+ return null;
+ }
+ if (!isThisDateValid(date, formatDDMMYY)) {
+ System.out.println("Wrong date: point 3");
+ return null;
+ }
+ SetDateRange();
+ long day = DateParsing(date, formatDDMMYY);
+ System.out.println(day);
+ if (day < earlestDate || day > currentDate)
+ return null;
+ List<Pair<String, String>> res = db.ReadProteinData(day);
+ if (res == null)
+ return null;
+ query = new ArrayList<DataBase>();
+ for (Pair<String, String> entry : res) {
+ DataBase bean = new DataBase();
+ bean.setDate(date);
+ bean.setId(entry.getElement0());
+ bean.setProt(entry.getElement1());
+ query.add(bean);
+ }
+ System.out.println("StatisticsProt.readLength: total number of dates = " + query.size());
+ return query;
+ }
+
+