package Ġcom . ne mes is protocol . crypt ocr aze . data . repos Ċ Ċ import Ġcom . ne mes is protocol . crypt ocr aze . data . database . portfolio . Portfolio Dao Ċ import Ġcom . ne mes is protocol . crypt ocr aze . domain . portfolio . Crypto Invest ment Ċ import Ġcom . ne mes is protocol . crypt ocr aze . domain . portfolio . Portfolio Repo Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠPortfolio Repo Impl Ġ@ Inject Ġconstructor ( private Ġval Ġportfolio Dao : ĠPortfolio Dao ) Ġ: ĊĠĠĠ ĠPortfolio Repo Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġget Portfolio (): ĠList < Crypto Invest ment > Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġportfolio Dao . get Portfolio () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcheck Crypto Is Inv ested ( crypto Symbol : ĠString ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġportfolio Dao . check Crypto Is Inv ested ( crypto Symbol Ġ= Ġcrypto Symbol ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget Crypto Invest ment By Symbol ( crypto Symbol : ĠString ): ĠCrypto Invest ment Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġportfolio Dao . getC rypto Invest ment By Symbol ( crypto Symbol Ġ= Ġcrypto Symbol ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġadd Crypto Invest ment ( crypto Invest ment : ĠCrypto Invest ment ) Ġ{ ĊĠĠĠĠĠĠĠ Ġportfolio Dao . add Crypto Invest ment ( crypto Invest ment Ġ= Ġcrypto Invest ment ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġupdate Crypto Invest ment ( crypto Invest ment : ĠCrypto Invest ment ) Ġ{ ĊĠĠĠĠĠĠĠ Ġportfolio Dao . update Crypto Invest ment ( crypto Invest ment Ġ= Ġcrypto Invest ment ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġdelete Crypto Invest ment ( crypto Invest ment : ĠCrypto Invest ment ) Ġ{ ĊĠĠĠĠĠĠĠ Ġportfolio Dao . delete Crypto Invest ment ( crypto Invest ment Ġ= Ġcrypto Invest ment ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġw ipe Portfolio () Ġ{ ĊĠĠĠĠĠĠĠ Ġportfolio Dao . w ipe Portfolio () ĊĠĠĠ Ġ} Ċ } Ċ