package dao;
import dao.impl.HSQLDBDAOFactory;
public abstract class DAOFactory {
public static final int HSQLDB = 1;
public abstract IFlightDAO getFlightDAO();
public abstract IAirportDAO getAirportDAO();
public abstract ICountryDAO getCountryDAO();
public static DAOFactory getDAOFactory(int whichFactory) {
switch (whichFactory) {
case HSQLDB:
return new HSQLDBDAOFactory();
default:
return null;
}
}
}