SCJP, SCJD, SCWCD, SCBCD, SCEA
SCJP, SCJD, SCWCD, SCBCD, SCEA
SCJP, SCJD, SCWCD, SCBCD, SCEA
Originally posted by java2de XIU:
Hi,
It is good.
but for local mode, you don't need lock and unlock
method.
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!
java2de
SCJP, SCJD, SCWCD, SCBCD, SCEA
SCJP, SCJD, SCWCD, SCBCD, SCEA
SCJP, SCJD, SCWCD, SCBCD, SCEA
SCJP, SCJD, SCWCD, SCBCD, SCEA
Your mother is a hamster and your father smells of tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|