package Ġcom . y ur ich . receipt s . data . dao Ċ Ċ import Ġandroidx . room .* Ċ import Ġcom . y ur ich . receipt s . data . entities . DB Image Ċ import Ġcom . y ur ich . receipt s . data . entities . DB Recipe Ċ import Ġcom . y ur ich . receipt s . data . entities . Recipe Image Cross Ref Ċ import Ġcom . y ur ich . receipt s . data . entities . Recipe With Images Ċ import Ġio . reactivex . Single Ċ Ċ @ Dao Ċ abstract Ġclass ĠRe cipes Dao Ġ{ ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġdb recipe ") ĊĠĠĠ Ġabstract Ġfun ĠgetAll (): ĠSingle < List < Recipe With Images >> ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġdb recipe ĠWHERE Ġrecipe Id ĠIN Ġ(: ids )") ĊĠĠĠ Ġabstract Ġfun ĠgetAll ById s ( ids : ĠList < Long >): ĠSingle < List < Recipe With Images >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert Recipes ( recipes : ĠList < DB Recipe >): ĠSingle < List < Long >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert Images ( images : ĠList < DB Image >): ĠSingle < List < Long >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert Relations ( cross Refs : ĠList < Recipe Image Cross Ref >): ĠSingle < List < Long >> ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠRecipe Image Cross Ref ĠWHERE Ġrecipe Id ĠIN Ġ(: recipe Ids )") ĊĠĠĠ Ġabstract Ġfun Ġremove Relations Of Recipe ( recipe Ids : ĠList < Long >): ĠInt Ċ Ċ }