Homepage
Write a storySign in / Sign up
Tagged in
Repository Design Pattern
  • Top
  • Latest
Go to the profile of Krzychu Kosobudzki
Krzychu KosobudzkiMar 203 min read

Repository Design Pattern

While developing Android applications in most of them you need to persist data in some kind of storage. In most cases this storage will be SQLite. Probably you want to access data in readable and easy way. What do you do then? Yes… you look for nice looking ORM. You can start to…

Read more…
21 responses
Go to the profile of Jan Gonera
Jan GoneraApr 3
Repository Design Pattern
Krzychu Kosobudzki
16921

I don’t understand what is the adventage of specifying an interface Specification, if you rename the only method to toSqlQuery(). Why do you have to cast it “(SqlSpecification) specification” in every method?

2 responses
Go to the profile of Ha Duy Trung
Ha Duy TrungApr 31 min read
Repository Design Pattern
Krzychu Kosobudzki
16921

I’m wondering if query() implementation can be improved, by keeping a reference to the Cursor for each Specification, and register content observer/dataset observer in case query results change due to added/removed/updated items (for the case of using SQLite DB)?

Read more…
1 response
Related tags
Android App DevelopmentJava
Related tags
Android App DevelopmentJava