package com.dayu.henanlibrary.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.henanlibrary.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(); 
 | 
} 
 |