package Ġcom . m ith . li ved ata ill ustr ator . database Ċ Ċ import Ġandroid . arch . persistence . room .* Ċ import Ġcom . m ith . li ved ata ill ustr ator . models . Exercise Ċ Ċ @ Dao Ċ interface ĠExercise Dao { ĊĠĠĠ Ġ@ Insert ( on Conflict Ġ= ĠOn Conflict Strategy . REPLACE ) ĊĠĠĠ Ġfun Ġinsert Day Routine ( exercise : ĠExercise ) ĊĊĠĠĠ Ġ@ Update ĊĠĠĠ Ġfun Ġupdate Day Routine ( exercise : ĠExercise ) ĊĊĠĠĠ Ġ@ Delete ĊĠĠĠ Ġfun Ġdelete Day Routine ( exercise : ĠExercise ) ĊĊĠĠĠ Ġ@ Query (" SELECT Ġ* ĠFROM ĠExercise ĠWHERE Ġname Ġ== Ġ: exercise Name ") ĊĠĠĠ Ġfun Ġget Exercise ByName ( exercise Name : ĠString ): ĠList < Exercise > Ċ } Ċ