fctom1215
2021-04-26 67c014b391b3fd36e7d530594c8e94c9655cea8c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package safeluck.drive.evaluation.DB.lightdb;
 
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
 
import java.util.List;
 
/**
 * DriveJudge
 * Created by lzw on 2021/1/14. 09:47:02
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
@Dao
public interface LightAllQuestionsDao {
    @Insert(onConflict=OnConflictStrategy.REPLACE)
    void insertQuestion(LightQuestion lightQuestions);
 
    @Insert(onConflict=OnConflictStrategy.REPLACE)
    void insertAll(List<LightQuestion> questionsList);
 
    @Query("SELECT * FROM alllight_question")
    List<LightQuestion> getAllLightQuestions();
 
}