zuoxiao
2024-03-06 1cbb505922e010cace51020773a2dc1529713322
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
30
31
32
33
package com.dayu.rechargeqh.dao;
 
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;
 
import com.dayu.rechargeqh.dbBean.IdentityBean;
 
/**
 * Created by Android Studio.
 * author: zuo
 * Date: 2023-11-20
 * Time: 10:42
 * 备注:
 */
@Dao
public interface IdentityDao {
 
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insert(IdentityBean identityBean);
 
    @Update
    void update(IdentityBean identityBean);
 
    @Delete
    void delete(IdentityBean identityBean);
 
    @Query("select  * from IdentityBean limit 1")
    IdentityBean findFirst();
}