Exemple #1
0
 /** Drops underlying database table using DAOs. */
 public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
   ImageDao.dropTable(db, ifExists);
   GalleryDao.dropTable(db, ifExists);
   TagDao.dropTable(db, ifExists);
   GallerysToTagsDao.dropTable(db, ifExists);
 }
Exemple #2
0
 /** Creates underlying database table using DAOs. */
 public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
   ImageDao.createTable(db, ifNotExists);
   GalleryDao.createTable(db, ifNotExists);
   TagDao.createTable(db, ifNotExists);
   GallerysToTagsDao.createTable(db, ifNotExists);
 }