com.pushtorefresh.storio.sqlite.queries.DeleteQuery Java Examples
The following examples show how to use
com.pushtorefresh.storio.sqlite.queries.DeleteQuery.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #2
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #3
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #4
Source File: StorIOFactory.java From Reactive-Android-Programming with MIT License | 5 votes |
private static DeleteResolver<StockUpdate> createDeleteResolver() { return new DefaultDeleteResolver<StockUpdate>() { @NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return null; } }; }
Example #5
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #6
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #7
Source File: StockUpdateDeleteResolver.java From Reactive-Android-Programming with MIT License | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull StockUpdate object) { return DeleteQuery.builder() .table(StockUpdateTable.TABLE) .where(StockUpdateTable.Columns.ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #8
Source File: LocationCacheMeta.java From android with Apache License 2.0 | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull LocationCache object) { return DeleteQuery.builder() .table(TABLE) .where(Columns._ID + " = ?") .whereArgs(object.getId()) .build(); }
Example #9
Source File: PrayerCacheMeta.java From android with Apache License 2.0 | 5 votes |
@NonNull @Override protected DeleteQuery mapToDeleteQuery(@NonNull PrayerCache object) { return DeleteQuery.builder() .table(TABLE) .where(Columns._ID + " = ?") .whereArgs(object.id) .build(); }
Example #10
Source File: LocalDataManager.java From Hews with MIT License | 5 votes |
@Override public Observable<DeleteResult> deleteStoryCommentsFromDb(long postId) { return StorIOHelper.getStorIOSQLite(mContext) .delete() .byQuery(DeleteQuery.builder() .table(CommentTable.TABLE) .where(CommentTable.COLUMN_PARENT + "=" + postId) .build()) .prepare() .asRxObservable().onBackpressureBuffer(); }