com.todoroo.astrid.data
Class TaskApiDao.TaskCriteria

java.lang.Object
  extended by com.todoroo.astrid.data.TaskApiDao.TaskCriteria
Enclosing class:
TaskApiDao

public static class TaskApiDao.TaskCriteria
extends java.lang.Object

Generates SQL clauses


Constructor Summary
TaskApiDao.TaskCriteria()
           
 
Method Summary
static Criterion activeAndVisible()
           
static Criterion byId(long id)
           
static Criterion completed()
           
static Criterion dueAfterNow()
           
static Criterion dueBeforeNow()
           
static Criterion hasDeadlines()
           
static Criterion hasNoTitle()
           
static Criterion isActive()
           
static Criterion isDeleted()
           
static Criterion isVisible()
           
static Criterion notDeleted()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskApiDao.TaskCriteria

public TaskApiDao.TaskCriteria()
Method Detail

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