package Ġcom . h ari . t mdb . db . internal . da os Ċ Ċ import Ġandroidx . paging . DataSource Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Query Ċ import Ġandroidx . room . Transaction Ċ import Ġcom . h ari . t mdb . db . internal . entity . On Tv Show Entity Ċ import Ġcom . h ari . t mdb . db . internal . result entities . On Tv Entry With Show Ċ Ċ @ Dao Ċ abstract Ġclass ĠOn Tv Show Dao Ġ: ĠShow Pag inated Entry Dao < On Tv Show Entity , ĠOn Tv Entry With Show >() Ġ{ ĊĠĠĠ Ġ@ Transaction ĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM Ġon _ tv _ shows ĠORDER ĠBY Ġpage , Ġpage _ order ") ĊĠĠĠ Ġabstract Ġfun ĠdataSource (): ĠDataSource . Factory < Int , ĠOn Tv Entry With Show > ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġon _ tv _ shows ĠWHERE Ġpage Ġ= Ġ: page ") ĊĠĠĠ Ġabstract Ġoverride Ġsuspend Ġfun Ġdelete Page ( page : ĠInt ) ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM Ġon _ tv _ shows ") ĊĠĠĠ Ġabstract Ġoverride Ġsuspend Ġfun Ġdelete All () ĊĊĠĠĠ Ġ@ Query (" SELECT ĠMAX ( page ) Ġfrom Ġon _ tv _ shows ") ĊĠĠĠ Ġabstract Ġoverride Ġsuspend Ġfun ĠgetLast Page (): ĠInt ? Ċ Ċ }