package Ġcom . j sh v arts . notes paging . data Ċ Ċ import Ġandroid . arch . persistence . room . Dao Ċ import Ġandroid . arch . persistence . room . Insert Ċ import Ġandroid . arch . persistence . room . On Conflict Strategy Ċ import Ġandroid . arch . persistence . room . Query Ċ import Ġio . reactivex . Single Ċ Ċ @ Dao Ċ interface ĠNotes Dao Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert ( note : ĠNote Entity ) ĊĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert All ( note : ĠList < Note Entity >) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġnotes ĠWHERE Ġid Ġ= Ġ: id ") ĊĠĠĠ Ġfun Ġnote ById ( id : ĠLong ): ĠSingle < Note Entity > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġnotes ĠORDER ĠBY Ġnote _ text ĠASC Ġlimit Ġ: requested Load Size ") ĊĠĠĠ Ġfun Ġnotes ( requested Load Size : ĠInt ): ĠList < Note Entity > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġnotes ĠWHERE Ġnote _ text Ġ> Ġ: key ĠORDER ĠBY Ġnote _ text ĠASC Ġlimit Ġ: requested Load Size ") ĊĠĠĠ Ġfun Ġnotes After ( key : ĠString , Ġrequested Load Size : ĠInt ): ĠList < Note Entity > Ċ }