blob: 6c56429be24c33af8346978b5c994f28c3fd8900 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.dao;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Query;
import java.util.List;
import it.niedermann.nextcloud.deck.model.Attachment;
@Dao
public interface AttachmentDao extends GenericDao<Attachment> {
@Query("SELECT * FROM attachment where cardId = :cardId")
LiveData<List<Attachment>> getAttachmentsForCard(long cardId);
@Query("SELECT * FROM attachment where accountId = :accountId and id = :remoteId")
Attachment getAttachmentByRemoteIdDirectly(long accountId, Long remoteId);
}
|