Java 类android.arch.persistence.room.RoomWarnings 实例源码

项目:SampleAppArch    文件:RepoDao.java   
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)
@Query("SELECT login, avatarUrl,repoName, repoOwner, contributions FROM contributor "
    + "WHERE repoName = :name AND repoOwner = :owner "
    + "ORDER BY contributions DESC")
public abstract LiveData<List<Contributor>> loadContributors(String owner, String name);
项目:android-architecture-components    文件:RepoDao.java   
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)
@Query("SELECT login, avatarUrl, repoName, repoOwner, contributions FROM contributor "
        + "WHERE repoName = :name AND repoOwner = :owner "
        + "ORDER BY contributions DESC")
public abstract LiveData<List<Contributor>> loadContributors(String owner, String name);
项目:lead-management-android    文件:ContactTagJoinDao.java   
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)
@Query("SELECT * FROM contact INNER JOIN contacttagjoin ON contact.id = contacttagjoin.contactId WHERE contacttagjoin.tagId = :tagId")
List<Contact> getContactsForTag(String tagId);
项目:lead-management-android    文件:ContactTagJoinDao.java   
@SuppressWarnings(RoomWarnings.CURSOR_MISMATCH)
@Query("SELECT * FROM tag INNER JOIN contacttagjoin ON tag.id = contacttagjoin.tagId WHERE contacttagjoin.contactId = :contactId")
List<Tag> getTagsForContact(String contactId);