Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "question about data client" Watch "question about data client" New topic
Author

question about data client

Holmes Wong
Ranch Hand

Joined: Feb 18, 2002
Posts: 163
Hi,
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.
I
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
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: http://aspose.com/file-tools
 
subject: question about data client
 
Similar Threads
Passing DatabaseException to Client Side?
Request For Comments
result sets
get all records in GUI in B&S
Data Conversion clarification.