File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Public interface to Data class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "Public interface to Data class" Watch "Public interface to Data class" New topic
Author

Public interface to Data class

Douglas Smith
Greenhorn

Joined: Jun 20, 2001
Posts: 1
Hi there,
this is my first posting to Java Ranch so here goes.
In the requirements document under the "Writing Data Client" section, there is the following text
"To connect with your server you should create a client program.
This implementation should include a class that implements the same public methods as the suncertify.db.Data class, although it will need different constructors to allow it to support network configuration".
My local and remote connections to the data class are separate classes but they both implement the same interface (containing all the public methods in the Data class). If I provide a factory
class to return either a remote or local connection to the database depending on the arguments passed have I satisfied the above requirement or do both types of connection really have to be in the same class?
Thanks in advance,
cheers,
doug
Rick Fortier
Ranch Hand

Joined: Jun 04, 2001
Posts: 147
Doug,
That sounds almost like what I did, except I also added an interface so that my gui does not have to have intimate knowledge of the DataInterface.
Read my answer to Vivian. http://www.javaranch.com/ubb/Forum25/HTML/000832.html
 
 
subject: Public interface to Data class
 
Threads others viewed
Writing Data Client
Remote Client Code
what do we need to fetch from remote server?
Data class on Client side
Remote client and Data client
developer file tools