package Ġcom . app center . in ub us . util Ċ Ċ import Ġandroidx . room .* Ċ import Ġandroidx . room . On Conflict Strategy . REPLACE Ċ import Ġcom . app center . in ub us . model . DB Bus Favorite Item Ċ Ċ @ Dao Ċ interface ĠBus Favorite DAO { ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠDB Bus Favorite Item ") ĊĠĠĠ Ġfun ĠgetAll (): ĠList < DB Bus Favorite Item > Ċ Ċ // ĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠDB Bus Favorite Item ĠWHERE Ġ` no ` Ġin Ġ(: id )") Ċ // ĠĠĠ Ġfun Ġdelete Number ( id Ġ: ĠInt ): ĠList < DB Bus Favorite Item > ĊĊĠĠĠ Ġ@ Insert Ġ( on Conflict Ġ= ĠREPLACE ) ĊĠĠĠ Ġfun Ġinsert ( item Ġ: ĠDB Bus Favorite Item Ġ) ĊĊĠĠĠ Ġ@ Update Ġ( on Conflict Ġ= ĠREPLACE ) ĊĠĠĠ Ġfun Ġupdate ( item Ġ: ĠDB Bus Favorite Item ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete ( item Ġ: ĠDB Bus Favorite Item ) ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom ĠDB Bus Favorite Item ") ĊĠĠĠ Ġfun Ġdelete all () Ċ }