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!
Tongue wrestling. It's not what you think. And here, take this tiny ad. You'll need it.
Devious Experiments for a Truly Passive Greenhouse!https://www.kickstarter.com/projects/paulwheaton/greenhouse-1