Rewritten operation processing

This commit is contained in:
M66B
2018-08-04 22:35:47 +00:00
parent dde022a4c1
commit a980b0a76f
3 changed files with 244 additions and 179 deletions

View File

@@ -37,6 +37,12 @@ public interface DaoOperation {
" ORDER BY operation.id")
List<TupleOperationEx> getOperations(long folder);
@Query("SELECT COUNT(operation.id) FROM operation" +
" JOIN message ON message.id = operation.message" +
" WHERE folder = :folder" +
" ORDER BY operation.id")
int getOperationCount(long folder);
@Query("DELETE FROM operation WHERE id = :id")
void deleteOperation(long id);