/** 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); }
/** 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); }