hi... i want to learn java..how to start up... i hve got knowledge of C,C++...
now plz assist....
now plz assist....
DAOFactory mysqlFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL);//DAOFactory is a abstract class
//method getDAOFactory() is like this:-
public static DAOFactory getDAOFactory(int whichFactory) {
switch (whichFactory) {
case 1:
// return new OracleDAOFactory(dbSource);
case 2:
// return new SybaseDAOFactory();
case 3:
return new MySqlDAOFactory();//MySqlDAOFactory is the class implementing DAOFactory
default:
return null;
}
}
DAOFactory mysqlFactory = DAOFactory.getDAOFactory(DAOFactory.MYSQL);//DAOFactory is a abstract class
//method getDAOFactory() is like this:-
public static DAOFactory getDAOFactory(int whichFactory) {
switch (whichFactory) {
case 1:
// return new OracleDAOFactory(dbSource);
case 2:
// return new SybaseDAOFactory();
case 3:
return new MySqlDAOFactory();//MySqlDAOFactory is the class implementing DAOFactory
default:
return null;
}
}
Comment