mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2024-11-26 17:53:14 +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.Update;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import one.nem.lacerta.source.database.entity.TagEntity;
|
||||
|
@ -19,10 +20,10 @@ public interface TagDao {
|
|||
TagEntity findById(String id);
|
||||
|
||||
@Query("SELECT * FROM TagEntity")
|
||||
List<TagEntity> findAll();
|
||||
ArrayList<TagEntity> findAll();
|
||||
|
||||
@Query("SELECT * FROM TagEntity WHERE id IN (:ids)")
|
||||
List<TagEntity> findByIds(List<String> ids);
|
||||
ArrayList<TagEntity> findByIds(ArrayList<String> ids);
|
||||
|
||||
// Insert
|
||||
@Insert
|
||||
|
|
Loading…
Reference in New Issue
Block a user