コード例 #1
0
 /** 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);
 }
コード例 #2
0
 /** 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);
 }