blob: ec0b8e427e5d9fc45a78c1da04c117715e874c73 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.dao;
import android.arch.lifecycle.LiveData;
import android.arch.persistence.room.Dao;
import android.arch.persistence.room.Query;
import it.niedermann.nextcloud.deck.model.Label;
@Dao
public interface LabelDao extends GenericDao<Label> {
// @Query("SELECT * FROM label WHERE stackId = :localStackId")
// LiveData<List<Label>> getLabelsForStack(final long localStackId);
@Query("SELECT * FROM label WHERE accountId = :accountId and id = :remoteId")
LiveData<Label> getLabelByRemoteId(final long accountId, final long remoteId);
@Query("SELECT * FROM label WHERE accountId = :accountId and id = :remoteId")
Label getLabelByRemoteIdDirectly(final long accountId, final long remoteId);
}
|