Originally posted by java2de XIU:
It is good.
but for local mode, you don't need lock and unlock
So I guess you may use two databaseImpl.
one called remotedabseImpl need to overrides
the lock, unlock and implements the criteriaFind method. The other localdabse don't need overrides the lock, unlock method but implements the criteriaFind method.
if you add criteriaFind method into Data class, then you can DIRECTLY use Data as local database.
AND remotedabseImpl derive from Data class and overrides the lock, unlock method.
Is it Ok?
thanks for any feedback!
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your databasehttps://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database