package com.hippo.ehviewer.dao; import androidx.room.Dao; import androidx.room.Delete; import androidx.room.Insert; import androidx.room.Query; import androidx.room.Update; import java.util.List; @Dao public interface DownloadLabelDao extends BasicDao { @Query("SELECT * FROM DOWNLOAD_LABELS ORDER BY TIME ASC") List list(); @Query("SELECT * FROM DOWNLOAD_LABELS ORDER BY TIME ASC LIMIT :limit OFFSET :offset") List list(int offset, int limit); @Update void update(List downloadLabels); @Update void update(DownloadLabel downloadLabel); @Insert long insert(DownloadLabel downloadLabel); @Delete void delete(DownloadLabel downloadLabel); }