Exemplo n.º 1
0
 /** Drops underlying database table using DAOs. */
 public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
   ThunderAVSourceDao.dropTable(db, ifExists);
   NovelDao.dropTable(db, ifExists);
   JokeDao.dropTable(db, ifExists);
   ImageDao.dropTable(db, ifExists);
 }
Exemplo n.º 2
0
 /** Creates underlying database table using DAOs. */
 public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
   ThunderAVSourceDao.createTable(db, ifNotExists);
   NovelDao.createTable(db, ifNotExists);
   JokeDao.createTable(db, ifNotExists);
   ImageDao.createTable(db, ifNotExists);
 }