/* Ċ Ġ* ĠCopyright Ġ( c ) Ġ 2 0 2 0 . Ċ Ġ* ĠD av in ĠA lf ar iz ky ĠPut ra ĠBas ude wa Ġ< db as ude wa @ gmail . com > Ċ Ġ* ĠOpen M us ix Ġ, An Ġopen Ġsource Ġmusic Ġmedia Ġplayer Ċ Ġ* ĠUnder ĠLicense ĠApache Ġ 2 . 0 Ċ Ġ* Ġ[ This Ġapp Ġdoes Ġnot Ġcontain Ġany Ġwarranty ] Ċ Ġ* Ċ Ġ*/ Ċ Ċ package Ġxyz . dv nl abs . open mus ix . data Ċ Ċ import Ġandroidx . room . Dao Ċ import Ġandroidx . room . Insert Ċ import Ġandroidx . room . On Conflict Strategy Ċ import Ġandroidx . room . Query Ċ Ċ @ Dao Ċ interface ĠMedia Artist DAO Ġ{ ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . IGNORE ) ĊĠĠĠ Ġsuspend Ġfun Ġnew Artist ( artist : ĠMedia Artist ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠMedia Artist ĠORDER ĠBY Ġartist _ name ĠCOLLATE ĠNO CASE ") ĊĠĠĠ Ġsuspend Ġfun ĠgetAll Artist (): ĠList < Media Artist > ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠMedia Artist ĠWHERE Ġartist _ id Ġ= Ġ: id ĠLIMIT Ġ 0 , 1 ") ĊĠĠĠ Ġsuspend Ġfun Ġget Artist ByID ( id : ĠLong ): ĠMedia Artist ĊĊĠĠĠ Ġ@ Query (" DELETE ĠFROM ĠMedia Artist ") ĊĠĠĠ Ġsuspend Ġfun Ġdelete All Artist () Ċ }