|
|
@ -29,8 +29,9 @@ import java.util.List;
|
|
|
|
@Dao
|
|
|
|
@Dao
|
|
|
|
public interface DaoOperation {
|
|
|
|
public interface DaoOperation {
|
|
|
|
String priority = "CASE" +
|
|
|
|
String priority = "CASE" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.BODY + "' THEN -2" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.BODY + "' THEN -3" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -1" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.ATTACHMENT + "' THEN -2" +
|
|
|
|
|
|
|
|
" WHEN operation.name = '" + EntityOperation.HEADERS + "' THEN -1" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.SYNC + "' THEN" +
|
|
|
|
" WHEN operation.name = '" + EntityOperation.SYNC + "' THEN" +
|
|
|
|
" CASE WHEN folder.account IS NULL THEN -1 ELSE 1 END" + // outbox
|
|
|
|
" CASE WHEN folder.account IS NULL THEN -1 ELSE 1 END" + // outbox
|
|
|
|
" ELSE 0" +
|
|
|
|
" ELSE 0" +
|
|
|
|