| | |
| | | /** Creates underlying database table using DAOs. */ |
| | | public static void createAllTables(Database db, boolean ifNotExists) { |
| | | OrderDao.createTable(db, ifNotExists); |
| | | OrderDetailDao.createTable(db, ifNotExists); |
| | | TestDao.createTable(db, ifNotExists); |
| | | } |
| | | |
| | | /** Drops underlying database table using DAOs. */ |
| | | public static void dropAllTables(Database db, boolean ifExists) { |
| | | OrderDao.dropTable(db, ifExists); |
| | | OrderDetailDao.dropTable(db, ifExists); |
| | | TestDao.dropTable(db, ifExists); |
| | | } |
| | | |
| | |
| | | public DaoMaster(Database db) { |
| | | super(db, SCHEMA_VERSION); |
| | | registerDaoClass(OrderDao.class); |
| | | registerDaoClass(OrderDetailDao.class); |
| | | registerDaoClass(TestDao.class); |
| | | } |
| | | |