lundi 12 décembre 2016

Is it appropriate to apply Strategy Design Pattern to SQLiteHelper?

I am doing a project which uses database to add like

  • Books, Authors, Members

I wrote database helper separately for each of them. I thought Design pattern can be used in order to reduce code duplication and for database helper I tend to use Strategy Design Pattern but I am not sure whether it is appropriate or not or not sure whether there is a better way to apply? Any help is appreciated.

Thanks a lot.

Aucun commentaire:

Enregistrer un commentaire