@Override
 public SearchFilter setStartTimeOfModification(final Date startTimeOfLastModification) {
   if (startTimeOfLastModification == null) {
     super.setStartTimeOfModification(null);
     return this;
   }
   final DateHolder dh = new DateHolder(startTimeOfLastModification, DatePrecision.MILLISECOND);
   dh.setBeginOfDay();
   super.setStartTimeOfModification(dh.getDate());
   return this;
 }
Пример #2
0
 /**
  * Sets the date to the beginning of the week (first day of week) and calls setBeginOfDay.
  *
  * @see #setBeginOfDay()
  */
 public DateHolder setBeginOfWeek() {
   calendar.set(Calendar.DAY_OF_WEEK, getFirstDayOfWeek());
   setBeginOfDay();
   return this;
 }
Пример #3
0
 /**
  * Sets the date to the beginning of the month (first day of month) and calls setBeginOfDay.
  *
  * @see #setBeginOfDay()
  */
 public DateHolder setBeginOfMonth() {
   calendar.set(Calendar.DAY_OF_MONTH, 1);
   setBeginOfDay();
   return this;
 }