11121314151617181920
public static DAOFactory getDAOFactory(int whichFactory) { switch (whichFactory) { case HSQLDB: return new HSQLDBDAOFactory(); default: return null; } }