示例#1
0
 /** Drops underlying database table using DAOs. */
 public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
   LeagueDao.dropTable(db, ifExists);
   RegionDao.dropTable(db, ifExists);
   SportDao.dropTable(db, ifExists);
 }
示例#2
0
 /** Creates underlying database table using DAOs. */
 public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
   LeagueDao.createTable(db, ifNotExists);
   RegionDao.createTable(db, ifNotExists);
   SportDao.createTable(db, ifNotExists);
 }