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
posted
0
You can achieve the same using a combination of Factory and Adapter patterns in case if ur network choice is RMI. Bye Jay