|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.todoroo.andlib.data.ContentResolverDao<Task>
com.todoroo.astrid.data.TaskApiDao
public class TaskApiDao
Data access object for accessing Astrid's Task table. If you
are looking to store extended information about a Task, you probably
want to use the MetadataApiDao object.
| Nested Class Summary | |
|---|---|
static class |
TaskApiDao.TaskCriteria
Generates SQL clauses |
| Constructor Summary | |
|---|---|
TaskApiDao(android.content.Context context)
|
|
| Method Summary | |
|---|---|
static void |
afterSave(Task task,
android.content.ContentValues values)
Send broadcasts on task change (triggers things like task repeats) |
static void |
afterTaskListChanged()
Send broadcast when task list changes. |
int |
countTasks(Criterion criterion)
Count tasks matching criterion |
int |
countTasks(java.lang.String queryTemplate)
Count tasks matching query tepmlate |
static boolean |
insignificantChange(android.content.ContentValues values)
|
boolean |
save(Task model)
Create new or save existing model |
| Methods inherited from class com.todoroo.andlib.data.ContentResolverDao |
|---|
delete, deleteWhere, fetch, query |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskApiDao(android.content.Context context)
| Method Detail |
|---|
public int countTasks(Criterion criterion)
criterion -
public int countTasks(java.lang.String queryTemplate)
queryTemplate -
public boolean save(Task model)
ContentResolverDao
save in class ContentResolverDao<Task>public static boolean insignificantChange(android.content.ContentValues values)
public static void afterSave(Task task,
android.content.ContentValues values)
task - task that was savedvalues - values that were updatedpublic static void afterTaskListChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||