public interface UserDao
Modifier and Type | Method and Description |
---|---|
Single<Integer> |
delete(Collection<User> users)
This method is used to delete a collection of users from the SmartCeff database.
|
Single<Integer> |
delete(User... users)
This method is used to delete more the one user from the SmartCeff database.
|
Single<Integer> |
delete(User user)
This method is used to delete an user from the SmartCeff database.
|
LiveData<User> |
findCurrentUser(long id)
This method is a query to the Smatcheff database.
|
LiveData<User> |
getAll()
This method is a query to the Smatcheff database.
|
Single<List<Long>> |
insert(Collection<User> users)
This method is used insert a collection user into the SmartCheff database.
|
Single<List<Long>> |
insert(User... users)
This method is used to insert more then one user into the SmartCheff database.
|
Single<Long> |
insert(User user)
This method is used to insert one user into the SmartCheff data base.
|
Single<Integer> |
update(Collection<User> users)
This method is used to update a collection of users in the SmartCeff database.
|
Single<Integer> |
update(User... users)
This method is used to update more then one users in the SmartCeff database.
|
Single<Integer> |
update(User user)
This method is used to update an user in the SmartCeff database.
|
Single<Long> insert(User user)
user
- is a reference to the user object.Single<List<Long>> insert(User... users)
users
- is a reference to more then one user object.Single<List<Long>> insert(Collection<User> users)
users
- is a reference to a collection user objects.Single<Integer> update(User user)
user
- is a reference to the user object.Single<Integer> update(User... users)
users
- is a reference to more then one user object.Single<Integer> update(Collection<User> users)
users
- is a reference to a collection of user objects.Single<Integer> delete(User user)
user
- is a reference to a user object.Single<Integer> delete(User... users)
users
- is a reference to more then one user object.Single<Integer> delete(Collection<User> users)
users
- is a reference to a collection of user objectsLiveData<User> findCurrentUser(long id)
id
- is a reference to the users' id.