Added wait operation

This commit is contained in:
M66B
2019-03-05 12:46:25 +00:00
parent 5661c5d11e
commit 0c9ccef668
6 changed files with 38 additions and 10 deletions

View File

@@ -94,6 +94,11 @@ public interface DaoOperation {
@Insert
long insertOperation(EntityOperation operation);
@Query("DELETE FROM operation" +
" WHERE message = :message" +
" AND name = '" + EntityOperation.WAIT + "'")
int deleteOperationWait(long message);
@Query("DELETE FROM operation WHERE id = :id")
void deleteOperation(long id);
}