|
|
@ -98,6 +98,12 @@ public interface DaoAttachment {
|
|
|
|
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
|
|
|
|
" AND (NOT (error IS :error) OR progress IS NOT NULL OR NOT (available IS 0))")
|
|
|
|
void setError(long id, String error);
|
|
|
|
void setError(long id, String error);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
|
|
|
|
" SET type = :type" +
|
|
|
|
|
|
|
|
" WHERE id = :id" +
|
|
|
|
|
|
|
|
" AND NOT (type IS :type)")
|
|
|
|
|
|
|
|
void setType(long id, String type);
|
|
|
|
|
|
|
|
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
@Query("UPDATE attachment" +
|
|
|
|
" SET disposition = :disposition" +
|
|
|
|
" SET disposition = :disposition" +
|
|
|
|
" WHERE id = :id" +
|
|
|
|
" WHERE id = :id" +
|
|
|
|