• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

which pattern ?

 
walter wang
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
Jayakumar Duraisamy
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can achieve the same using a combination of Factory and Adapter patterns in case if ur network choice is RMI.
Bye
Jay
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic