Exemple #1
0
 public int purgeDeletedTasks() {
   return taskDao.deleteWhere(Task.DELETION_DATE.gt(0));
 }
Exemple #2
0
 /** @return tasks that have not yet been completed or deleted */
 public static Criterion activeAndVisible() {
   return Criterion.and(
       Task.COMPLETION_DATE.eq(0),
       Task.DELETION_DATE.eq(0),
       Task.HIDE_UNTIL.lt(Functions.now()));
 }
Exemple #3
0
 /** @return tasks that have not yet been completed or deleted */
 public static Criterion isActive() {
   return Criterion.and(Task.COMPLETION_DATE.eq(0), Task.DELETION_DATE.eq(0));
 }
Exemple #4
0
 /** @return tasks that were not deleted */
 public static Criterion notDeleted() {
   return Task.DELETION_DATE.eq(0);
 }