/** Drops underlying database table using DAOs. */ public static void dropAllTables(SQLiteDatabase db, boolean ifExists) { MenuDao.dropTable(db, ifExists); ChannelDao.dropTable(db, ifExists); NewsDao.dropTable(db, ifExists); NewsDetailDao.dropTable(db, ifExists); ImageDao.dropTable(db, ifExists); HeaderImageDao.dropTable(db, ifExists); }
/** Creates underlying database table using DAOs. */ public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) { MenuDao.createTable(db, ifNotExists); ChannelDao.createTable(db, ifNotExists); NewsDao.createTable(db, ifNotExists); NewsDetailDao.createTable(db, ifNotExists); ImageDao.createTable(db, ifNotExists); HeaderImageDao.createTable(db, ifNotExists); }