com.todoroo.astrid.data
Class TaskApiDao.TaskCriteria
java.lang.Object
com.todoroo.astrid.data.TaskApiDao.TaskCriteria
- Enclosing class:
- TaskApiDao
public static class TaskApiDao.TaskCriteria
- extends java.lang.Object
Generates SQL clauses
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskApiDao.TaskCriteria
public TaskApiDao.TaskCriteria()
byId
public static Criterion byId(long id)
- Returns:
- tasks by id
isDeleted
public static Criterion isDeleted()
- Returns:
- tasks that were deleted
notDeleted
public static Criterion notDeleted()
- Returns:
- tasks that were not deleted
activeAndVisible
public static Criterion activeAndVisible()
- Returns:
- tasks that have not yet been completed or deleted
isActive
public static Criterion isActive()
- Returns:
- tasks that have not yet been completed or deleted
isVisible
public static Criterion isVisible()
- Returns:
- tasks that are not hidden at current time
hasDeadlines
public static Criterion hasDeadlines()
- Returns:
- tasks that have a due date
dueBeforeNow
public static Criterion dueBeforeNow()
- Returns:
- tasks that are due before a certain unixtime
dueAfterNow
public static Criterion dueAfterNow()
- Returns:
- tasks that are due after a certain unixtime
completed
public static Criterion completed()
- Returns:
- tasks completed before a given unixtime
hasNoTitle
public static Criterion hasNoTitle()
- Returns:
- tasks that have a blank or null title