Demo entry 6742967



Submitted by anonymous on May 20, 2018 at 05:59
Language: Java. Code size: 313 Bytes.

public interface UserDao {

    @Insert(onConflict = OnConflictStrategy.FAIL)
    void insertUsers (UserEntity... users);

    @Query("select * from users where name= :userName")
    UserEntity loadUser(String userName);

    @Query("select * from users")
    List<UserEntity> getUserList();


This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).