use of cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl in project ACS by ACS-Community.
the class DAOManager method getCategoryDAO.
public CategoryDAO getCategoryDAO() throws IllegalStateException {
if (_conf == null) {
throw new IllegalStateException("DAOManager not connected to DAL");
}
if (_categoryDAOImpl == null) {
if (_alarmDAOImpl == null)
_alarmDAOImpl = getAlarmDAO();
_categoryDAOImpl = new ACSCategoryDAOImpl(_contServ.getLogger(), (ACSAlarmDAOImpl) _alarmDAOImpl);
((ACSCategoryDAOImpl) _categoryDAOImpl).setConfAccessor(_conf);
}
return _categoryDAOImpl;
}
Aggregations