Esempio n. 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);
 }
Esempio n. 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);
 }