Cortex Android
 All Classes Namespaces Functions Variables
nl.sense_os.cortex.coaching.db.StyleMessageDB Class Reference
Inheritance diagram for nl.sense_os.cortex.coaching.db.StyleMessageDB:
nl.sense_os.cortex.coaching.db.CoachingDB

Public Member Functions

 StyleMessageDB (SensePlatform sensePlatform)
 
void onCreate (SQLiteDatabase db)
 
void populateDB (SQLiteDatabase db)
 
void updateDatabase ()
 
boolean needDatebaseUpdate ()
 
boolean isPopulated ()
 
StyleMessage getStyleMessage (Message message)
 
- Public Member Functions inherited from nl.sense_os.cortex.coaching.db.CoachingDB
 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 Public Attributes

static String KEY_TASK_TYPE = "taskType"
 
static String KEY_MSG_STYLE = "msgStyle"
 
static String KEY_MSG_TYPE = "msgType"
 
static String KEY_TITLE = "title"
 
static String KEY_NOTIFICATION_TEXT = "notificationText"
 
static String KEY_TEXT = "text"
 
static String KEY_RETRIEVE_COUNT = "retrieveCount"
 
- Static Public Attributes inherited from nl.sense_os.cortex.coaching.db.CoachingDB
static final String KEY_ID = "_id"
 
static final String KEY_LOGIN_USERNAME = "login_username"
 
static final String KEY_MUTATED_AT = "mutated_at"
 

Static Protected Attributes

static String TAG = "StyleMessageDB"
 
- Static Protected Attributes inherited from nl.sense_os.cortex.coaching.db.CoachingDB
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"
 

Additional Inherited Members

- Protected Member Functions inherited from nl.sense_os.cortex.coaching.db.CoachingDB
String getLoginUsername ()
 
String createTableString ()
 
ContentValues toContentValues (JSONObject object)
 
String createEquals (JSONObject criterion)
 
String createBetween (JSONObject first_criterion, JSONObject second_criterion)
 
JSONObject getSingleCreterion (JSONObject first_criterion, JSONObject second_criterion)
 
JSONObject toJSONObject (Cursor c)
 
boolean update (JSONObject object)
 
boolean delete (JSONObject object)
 
- Protected Attributes inherited from nl.sense_os.cortex.coaching.db.CoachingDB
String tableName
 
JSONObject dataStructure
 
SensePlatform sensePlatform
 
boolean userAutoIncrementKey = true
 
boolean isUserSpecificTable = true
 
boolean tableCreated = false
 

Member Function Documentation

StyleMessage nl.sense_os.cortex.coaching.db.StyleMessageDB.getStyleMessage ( Message  message)

Get StyleMessage

Get a random StyleMessage based on the criteria of the Message.

Parameters
messageThe Message to find the StyleMessage for.
Returns
a Random StyleMessage
void nl.sense_os.cortex.coaching.db.StyleMessageDB.populateDB ( SQLiteDatabase  db)

Add advice messages to the database


The documentation for this class was generated from the following file: