The moose likes Developer Certification (SCJD/OCMJD) and the fly likes which pattern ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Developer Certification (SCJD/OCMJD)
Reply Bookmark "which pattern ?" Watch "which pattern ?" New topic
Author

which pattern ?

walter wang
Ranch Hand

Joined: Jun 02, 2001
Posts: 144

Here is main idea of my project
it will quire database through local or network
so i write 3 parts , clientinterface clientlogic
server(rmi)
in clientlogic it will check user's connecint choice
if user choosed local connect then it will connect
local database to query and return matched
result .
if user choosed network connect then it will
connect network database(via rmi) to query
and return result
i dont think i used Factory pattern because
Factory pattern provides a simple decision making
class which returns one of several possible subclasses
of an abstract base class depending on data it is provided.
Could you give me some hint on which pattern
i used?

public class Walter{
public boolean is_Working_Now(boolean is_boss_Coming){
return is_boss_Coming;
}
Jayakumar Duraisamy
Ranch Hand

Joined: May 07, 2001
Posts: 31
You can achieve the same using a combination of Factory and Adapter patterns in case if ur network choice is RMI.
Bye
Jay
 
 
subject: which pattern ?
 
Threads others viewed
Remote /Local mode
Client ID?
Doubt in Assignment Architecture !
Database connection type return problem
Lockmanger- singleton implementation /static creation & assignment in RMI server ?
developer file tools