コード例 #1
0
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVer, int newVer) {
    try {

      CategoryTable categoryTable = new CategoryTable();
      categoryTable.onUpgrade(db, oldVer, newVer);
      ProductTable productTable = new ProductTable();
      productTable.onUpgrade(db, oldVer, newVer);

    } catch (Exception e) {
    }
  }
コード例 #2
0
  @Override
  public void onCreate(SQLiteDatabase db) {
    try {

      CategoryTable categoryTable = new CategoryTable();
      categoryTable.onCreate(db);
      ProductTable productTable = new ProductTable();
      productTable.onCreate(db);

    } catch (Exception e) {
    }
  }