public interface IngredientDao
Modifier and Type | Method and Description |
---|---|
Single<Integer> |
delete(Collection<Ingredient> ingredients)
This method is used to delete a collection of ingredients from the SmartCeff database.
|
Single<Integer> |
delete(Ingredient... ingredients)
This method is used to delete more the one ingredient from the SmartCeff database.
|
Single<Integer> |
delete(Ingredient ingredients)
This method is used to delete an ingredient from the SmartCeff database.
|
LiveData<List<Ingredient>> |
getAll()
This method is a query to the Smatcheff database.
|
Single<List<Long>> |
insert(Collection<Ingredient> ingredients)
This method is used insert a collection ingredient into the SmartCheff database.
|
Single<List<Long>> |
insert(Ingredient... ingredients)
This method is used to insert more then one ingredient into the SmartCheff database.
|
Single<Long> |
insert(Ingredient ingredient)
This method is used to insert one ingredient into the SmartCheff data base.
|
LiveData<List<Ingredient>> |
selectByQuantity(int quantityAvailable)
This method is a query to the Smatcheff database.
|
LiveData<Ingredient> |
selectByUpc(String upc)
This method is a query to the Smatcheff database.
|
LiveData<List<Ingredient>> |
selectName(String name)
This method is a query to the Smatcheff database.
|
Single<Integer> |
update(Collection<Ingredient> ingredients)
This method is used to update a collection of ingredients in the SmartCeff database.
|
Single<Integer> |
update(Ingredient... ingredients)
This method is used to update more then one ingredients in the SmartCeff database.
|
Single<Integer> |
update(Ingredient ingredient)
This method is used to update an ingredient in the SmartCeff database.
|
Single<Long> insert(Ingredient ingredient)
ingredient
- is a reference to the Ingredient object.Single<List<Long>> insert(Ingredient... ingredients)
ingredients
- is a reference to more then one Ingredient object.Single<List<Long>> insert(Collection<Ingredient> ingredients)
ingredients
- is a reference to a collection Ingredient object.Single<Integer> update(Ingredient ingredient)
ingredient
- is a reference to the Ingredient object.Single<Integer> update(Ingredient... ingredients)
ingredients
- is a reference to more then one Ingredient object.Single<Integer> update(Collection<Ingredient> ingredients)
ingredients
- is a reference to a collection of Ingredient objects.Single<Integer> delete(Ingredient ingredients)
ingredients
- is a reference to a Ingredient object.Single<Integer> delete(Ingredient... ingredients)
ingredients
- is a reference to more then one Ingredient object.Single<Integer> delete(Collection<Ingredient> ingredients)
ingredients
- is a reference to a collection of Ingredient objectsLiveData<Ingredient> selectByUpc(String upc)
upc
- is a reference to an ingredient upcLiveData<List<Ingredient>> selectName(String name)
name
- is a reference to an ingredient name.LiveData<List<Ingredient>> selectByQuantity(int quantityAvailable)
quantityAvailable
- reference to an ingredients quanity available.LiveData<List<Ingredient>> getAll()