mercredi 7 novembre 2018

DAO with different DataSource for different cases

I access a REST API to get some objects in order to save them in a local DB. Later I want to access these objects in the local DB and update them as well.

I'm not sure what is the best way to go - trying to use the DAO Design Pattern. What I see is, that there are different data sources for different cases (operations).

Can you give me some ideas?

enter image description here

Aucun commentaire:

Enregistrer un commentaire