package Ġcom . example . alex me ln ik ov . coin space . model . pers istance . dao Ċ Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Insert Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy . REPLACE Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġandroid . arch . persistence . room . Update Ċ import Ġcom . example . alex me ln ik ov . coin space . model . entities . Operation Ċ Ċ /** Ċ Ġ* Ġ ĠCreated Ġby ĠAlex ander ĠMel nik ov Ġon Ġ 2 7 . 0 7 . 1 8 . Ċ Ġ*/ Ċ @ Dao Ċ interface ĠOperations Dao Ġ{ ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* Ġfrom Ġoperations ") ĊĠĠĠ Ġfun ĠgetAll (): ĠList < Operation > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġoperations ĠWHERE Ġid ĠLIKE Ġ: id ") ĊĠĠĠ Ġfun Ġfind ById ( id : ĠLong ): ĠOperation ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġoperations ĠWHERE ĠaccountId ĠLIKE Ġ: accountId ") ĊĠĠĠ Ġfun ĠfindBy AccountId ( accountId : ĠLong ): ĠList < Operation > ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠREPLACE ) ĊĠĠĠ Ġfun Ġinsert ( operation : ĠOperation ): ĠLong ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom Ġoperations ") ĊĠĠĠ Ġfun Ġdelete All () ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom Ġoperations ĠWHERE Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġdelete ById ( id : ĠLong ) ĊĊĠĠĠ Ġ@ Query (" DELETE Ġfrom Ġoperations ĠWHERE ĠaccountId Ġ= Ġ: accountId ") ĊĠĠĠ Ġfun Ġdelete By AccountId ( accountId : ĠLong ) ĊĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate Accounts ( var arg Ġoperation : ĠOperation ) Ċ Ċ }