Beispiel #1
0
 /** Drops underlying database table using DAOs. */
 public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
   ConversationDao.dropTable(db, ifExists);
   ChatMessageDao.dropTable(db, ifExists);
   UserDao.dropTable(db, ifExists);
 }
Beispiel #2
0
 /** Creates underlying database table using DAOs. */
 public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
   ConversationDao.createTable(db, ifNotExists);
   ChatMessageDao.createTable(db, ifNotExists);
   UserDao.createTable(db, ifNotExists);
 }