@Test public void testDeleteDatabase() throws Exception { SQLiteOperator<TestTable> operator = SQLiteOperator.from(getContext(), TestTable.class); operator.save(new TestTable()).executeBlocking(); assertNotNull(operator.getSingle(1)); SQLiteOperator.deleteDatabase(getContext(), TestDatabase.class); assertNull(operator.getSingle(1).executeBlocking()); }
public static void deleteDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { HighLiteOpenHelper helper = (HighLiteOpenHelper) getGeneratedHelper(context, cls); helper.deleteDatabase(context); }
SQLiteOperator { public static void deleteDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { HighLiteOpenHelper helper = (HighLiteOpenHelper) getGeneratedHelper(context, cls); helper.deleteDatabase(context); } }
SQLiteOperator { public static void deleteDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { HighLiteOpenHelper helper = (HighLiteOpenHelper) getGeneratedHelper(context, cls); helper.deleteDatabase(context); } private  SQLiteOperator(final @NonNull Context context, final @NonNull Class<T> cls); }
SQLiteOperator { public static void deleteDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { HighLiteOpenHelper helper = (HighLiteOpenHelper) getGeneratedHelper(context, cls); helper.deleteDatabase(context); } 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 void deleteDatabase(final @NonNull Context context, final @NonNull Class<?> cls) { HighLiteOpenHelper helper = (HighLiteOpenHelper) getGeneratedHelper(context, cls); helper.deleteDatabase(context); } 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);  }