@Test public void testOnUpgradeWithSimilarFieldName() throws Exception { getHelperInstance() .getWritableDatabase() .execSQL("DROP TABLE test_table2;"); getHelperInstance() .getWritableDatabase() .execSQL("\n" + " CREATE TABLE IF NOT EXISTS test_table2 (\n" + " `id` INTEGER PRIMARY KEY AUTOINCREMENT,\n" + " `nonSerializable` BLOB,\n" + " `testString` INTEGER,\n" + " `testStringLonger` TEXT\n" + " );"); getHelperInstance().onUpgrade(getHelperInstance().getWritableDatabase(), 1, 2); }
public static SQLiteDatabase getWritableDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { return getGeneratedHelper(context, cls).getWritableDatabase(); }
SQLiteOperator { public static SQLiteDatabase getWritableDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { return getGeneratedHelper(context, cls).getWritableDatabase(); } }
SQLiteOperator { public static SQLiteDatabase getWritableDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { return getGeneratedHelper(context, cls).getWritableDatabase(); } private  SQLiteOperator(final @NonNull Context context, final @NonNull Class<T> cls); }
SQLiteOperator { public static SQLiteDatabase getWritableDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { return getGeneratedHelper(context, cls).getWritableDatabase(); } private  SQLiteOperator(final @NonNull Context context, final @NonNull Class<T> cls); static SQLiteOperator<T> from(final @NonNull Context context,
                                             final @NonNull Class<T> cls); static SQLiteDatabase getReadableDatabase(final @NonNull Context context,
                                                     final @NonNull Class<?> cls); static SQLiteDatabase getWritableDatabase(final @NonNull Context context,
                                                     final @NonNull Class<?> cls); static void deleteDatabase(final @NonNull Context context,
                                      final @NonNull Class<?> cls); GetSingleOperation<T> getSingle(final @Nullable Object id); GetSingleOperation<T> getSingle(); GetListOperation<T> getList(); SaveOperation<T> save(final @NonNull T... objectsToInsert); SaveOperation<T> save(final @NonNull Collection<T> objectsToInsert); DeleteOperation<T> delete(final @Nullable T... objectsToDelete); DeleteOperation<T> delete(final @NonNull Collection<T> objectsToDelete); }
SQLiteOperator { public static SQLiteDatabase getWritableDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { return getGeneratedHelper(context, cls).getWritableDatabase(); } private  SQLiteOperator(final @NonNull Context context, final @NonNull Class<T> cls); static SQLiteOperator<T> from(final @NonNull Context context,
                                             final @NonNull Class<T> cls); static SQLiteDatabase getReadableDatabase(final @NonNull Context context,
                                                     final @NonNull Class<?> cls); static SQLiteDatabase getWritableDatabase(final @NonNull Context context,
                                                     final @NonNull Class<?> cls); static void deleteDatabase(final @NonNull Context context,
                                      final @NonNull Class<?> cls); GetSingleOperation<T> getSingle(final @Nullable Object id); GetSingleOperation<T> getSingle(); GetListOperation<T> getList(); SaveOperation<T> save(final @NonNull T... objectsToInsert); SaveOperation<T> save(final @NonNull Collection<T> objectsToInsert); DeleteOperation<T> delete(final @Nullable T... objectsToDelete); DeleteOperation<T> delete(final @NonNull Collection<T> objectsToDelete);  }