package Ġcom . d lo pro du . mar vel hero es . domain . db Ċ Ċ import Ġandroid . arch . persistence . room .* Ċ import Ġcom . d lo pro du . mar vel hero es . domain . model . Mar vel Hero Entity Ċ import Ġio . reactivex . Maybe Ċ Ċ @ Dao Ċ abstract Ġclass ĠMar vel Hero Dao Ġ{ ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġhero es ") ĊĠĠĠ Ġabstract Ġfun ĠgetAll Hero es (): ĠMaybe < List < Mar vel Hero Entity >> ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert All ( hero es : ĠList < Mar vel Hero Entity >) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġabstract Ġfun Ġinsert ( hero : ĠMar vel Hero Entity ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġhero es ") ĊĠĠĠ Ġabstract Ġfun Ġdelete All Hero es () ĊĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġopen Ġfun Ġremove And Insert Hero es ( hero es : ĠList < Mar vel Hero Entity >) Ġ{ ĊĠĠĠĠĠĠĠ Ġdelete All Hero es () ĊĠĠĠĠĠĠĠ Ġinsert All ( hero es ) ĊĠĠĠ Ġ} Ċ }