mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-30 03:23:16 +00:00
TagDao: 全体的にArrayListに変更
This commit is contained in:
parent
36b0884481
commit
9c30879084
|
@ -6,6 +6,7 @@ import androidx.room.Insert;
|
||||||
import androidx.room.Query;
|
import androidx.room.Query;
|
||||||
import androidx.room.Update;
|
import androidx.room.Update;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import one.nem.lacerta.source.database.entity.TagEntity;
|
import one.nem.lacerta.source.database.entity.TagEntity;
|
||||||
|
@ -19,10 +20,10 @@ public interface TagDao {
|
||||||
TagEntity findById(String id);
|
TagEntity findById(String id);
|
||||||
|
|
||||||
@Query("SELECT * FROM TagEntity")
|
@Query("SELECT * FROM TagEntity")
|
||||||
List<TagEntity> findAll();
|
ArrayList<TagEntity> findAll();
|
||||||
|
|
||||||
@Query("SELECT * FROM TagEntity WHERE id IN (:ids)")
|
@Query("SELECT * FROM TagEntity WHERE id IN (:ids)")
|
||||||
List<TagEntity> findByIds(List<String> ids);
|
ArrayList<TagEntity> findByIds(ArrayList<String> ids);
|
||||||
|
|
||||||
// Insert
|
// Insert
|
||||||
@Insert
|
@Insert
|
||||||
|
|
Loading…
Reference in New Issue
Block a user