File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes question about data client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question about data client" Watch "question about data client" New topic

question about data client

Holmes Wong
Ranch Hand

Joined: Feb 18, 2002
Posts: 163
As the requirements go, we have to implement the same public methods in client as data class in db package. Since data class has already had all theses implementations, will it be redundant to reimplement them again in the client side? Or, does that mean we should just import them from db to the client class? Thanks.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

For Local mode you will be dealing with those classes directly. So yes you are importing. But you want to be careful, because how much should you client/GUI know about database side. Not much, so by using Facade and Factories you can hide the low level implementation while still having the Data stuff on the client side for local mode.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
Holmes Wong
Ranch Hand

Joined: Feb 18, 2002
Posts: 163
Thanks, Mark. I gonna use Factory Method to separate local/remote data accesses. That helps a lot.
I agree. Here's the link:
subject: question about data client
It's not a secret anymore!