|
| TaskDB (SensePlatform sensePlatform) |
|
boolean | update (JSONObject object) |
|
long | getPopulationTime () |
|
boolean | populate (JSONArray coachesJSON) |
|
| CoachingDB (SensePlatform sensePlatform, JSONObject dataStructure) |
|
SQLiteDatabase | getWritableDatabase () |
|
SQLiteDatabase | getReadableDatabase () |
|
void | onConfigure (SQLiteDatabase db) |
|
void | onOpen (SQLiteDatabase db) |
|
void | onCreate (SQLiteDatabase db) |
|
void | onUpgrade (SQLiteDatabase db, int oldVersion, int newVersion) |
|
boolean | add (JSONObject object) |
|
boolean | add (JSONObject object, SQLiteDatabase db) |
|
JSONArray | get (JSONObject criterion) |
|
JSONArray | get (JSONObject start_criterion, JSONObject end_criterion) |
|
void | clearTable () |
|
|
static String | KEY_TASK_TYPE = "taskType" |
|
static String | KEY_VALUE = "value" |
|
static String | KEY_TARGET = "target" |
|
static String | KEY_STATUS = "status" |
|
static String | KEY_START_DATE = "startDate" |
|
static String | KEY_END_DATE = "endDate" |
|
static String | KEY_DESCRIPTION = "description" |
|
static String | KEY_COACH_TYPE = "coachType" |
|
static final String | KEY_ID = "_id" |
|
static final String | KEY_LOGIN_USERNAME = "login_username" |
|
static final String | KEY_MUTATED_AT = "mutated_at" |
|
|
String | PREFERENCES_POPULATION_TIME = "tasks_population_time" |
|
String | tableName |
|
JSONObject | dataStructure |
|
SensePlatform | sensePlatform |
|
boolean | userAutoIncrementKey = true |
|
boolean | isUserSpecificTable = true |
|
boolean | tableCreated = false |
|
|
static String | TAG = "TaskDB" |
|
static String | TAG = "CoachingDB" |
|
static final String | TYPE_INTEGER = " INTEGER" |
|
static final String | TYPE_TEXT = " TEXT" |
|
static final String | TYPE_DATETIME = " DATETIME" |
|
static final String | TYPE_REAL = " REAL" |
|
nl.sense_os.cortex.coaching.db.TaskDB.TaskDB |
( |
SensePlatform |
sensePlatform | ) |
|
Initialize the Task database.
Initializes the Task database and creates the database and Table if necessary.
- Parameters
-
context | The application Context. |
long nl.sense_os.cortex.coaching.db.TaskDB.getPopulationTime |
( |
| ) |
|
Returns the population time of the TaskDB
- Returns
- The epoch miliseconds of the time the TaskDB was populated. If never populated, it will return Long.MIN_VALUE
boolean nl.sense_os.cortex.coaching.db.TaskDB.update |
( |
JSONObject |
object | ) |
|
Update a Task
Updates a row based on the JSONObject representation of the Task.
- Parameters
-
object | The JSONObject representation of the Task to update. |
The documentation for this class was generated from the following file:
- android-sdk/src/nl/sense_os/cortex/coaching/db/TaskDB.java