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