public interface RecipeDao
Modifier and Type | Method and Description |
---|---|
Single<Integer> |
delete(Collection<Recipe> recipes)
This method is used to delete a collection of recipes from the SmartCeff database.
|
Single<Integer> |
delete(Recipe... recipes)
This method is used to delete more the one recipes from the SmartCeff database.
|
Single<Integer> |
delete(Recipe recipe)
This method is used to delete a recipes from the SmartCeff database.
|
LiveData<List<Recipe>> |
findById(long recipeId)
This method is a query to the Smatcheff database.
|
LiveData<Recipe> |
findByName(String name)
This method is a query to the Smatcheff database.
|
LiveData<List<Recipe>> |
findRecipeUsingIngredient(long ingredientId)
This method is a query to the Smatcheff database.
|
LiveData<List<Recipe>> |
getAll()
This method is a query to the Smatcheff database.
|
Single<List<Long>> |
insert(Collection<Recipe> recipes)
This method is used insert a collection recipes into the SmartCheff database.
|
Single<List<Long>> |
insert(Recipe... recipes)
This method is used to insert more then one recipe into the SmartCheff database.
|
Single<Long> |
insert(Recipe recipe)
This method is used to insert one recipe into the SmartCheff data base.
|
Single<Integer> |
update(Collection<Recipe> recipes)
This method is used to update a collection of recipes in the SmartCeff database.
|
Single<Integer> |
update(Recipe... recipes)
This method is used to update more then one recipes in the SmartCeff database.
|
Single<Integer> |
update(Recipe recipe)
This method is used to update a recipe in the SmartCeff database.
|
Single<Long> insert(Recipe recipe)
recipe
- is a reference to the Recipe object.Single<List<Long>> insert(Recipe... recipes)
recipes
- is a reference to more then one Recipe object.Single<List<Long>> insert(Collection<Recipe> recipes)
recipes
- is a reference to a collection recipes object.Single<Integer> update(Recipe recipe)
recipe
- is a reference to the recipe object.Single<Integer> update(Recipe... recipes)
recipes
- is a reference to more then one recipes object.Single<Integer> update(Collection<Recipe> recipes)
recipes
- is a reference to a collection of recipes objects.Single<Integer> delete(Recipe recipe)
recipe
- is a reference to a recipes object.Single<Integer> delete(Recipe... recipes)
recipes
- is a reference to more then one recipe object.Single<Integer> delete(Collection<Recipe> recipes)
recipes
- is a reference to a collection of recipes objects.LiveData<List<Recipe>> findRecipeUsingIngredient(long ingredientId)
ingredientId
- is a reference to an ingredient id.LiveData<Recipe> findByName(String name)
name
- is a reference to a recipes' name.LiveData<List<Recipe>> findById(long recipeId)
recipeId
- is a reference to a recipes' id.