endian11
2020-09-17 399bf6ae73d636d56ecd590036964e52433b4743
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
package safeluck.drive.evaluation.DB.route;
 
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 2020/9/16. 15:49:36
 * 邮箱:632393724@qq.com
 * All Rights Saved! Chongqing AnYun Tech co. LTD
 */
@Dao
public interface RouteBeanDao {
    @Query("SELECT * FROM RouteBean")
    LiveData<List<RouteBean>> getAllRoutes();
 
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertRouteBean(RouteBean routeBean);
 
    @Delete
    void deleteRouteBean(RouteBean item);
}