package Ġcom . example application . product Ċ Ċ import Ġcom . example application . database . product . Product DAO Ċ import Ġcom . example application . database . product . Product Entity Ċ Ċ class ĠProduct Repository ( private Ġval Ġproduct DAO : ĠProduct DAO ) Ġ{ ĊĊĠĠĠ Ġfun ĠgetAll Products (): ĠList < Product Entity > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġproduct DAO . getAll Products () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcreate Product ( product : ĠProduct Entity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġproduct DAO . create Product ( product ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġupdate Product ( product : ĠProduct Entity ) Ġ{ ĊĠĠĠĠĠĠĠ Ġproduct DAO . update Product ( product ) ĊĠĠĠ Ġ} Ċ Ċ }