Search in sources :

Example 16 with ACSAlarmDAOImpl

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;
}
Also used : ACSCategoryDAOImpl(cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl) ACSAlarmDAOImpl(cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl)

Aggregations

ACSAlarmDAOImpl (cl.utfsm.acs.acg.dao.ACSAlarmDAOImpl)16 FaultFamily (alma.acs.alarmsystem.generated.FaultFamily)11 Vector (java.util.Vector)10 FaultCode (alma.acs.alarmsystem.generated.FaultCode)3 FaultMember (alma.acs.alarmsystem.generated.FaultMember)3 Alarms (alma.acs.alarmsystem.generated.Alarms)2 Category (alma.acs.alarmsystem.generated.Category)2 Alarm (cern.laser.business.data.Alarm)2 ValidationException (org.exolab.castor.xml.ValidationException)2 FaultMemberDefault (alma.acs.alarmsystem.generated.FaultMemberDefault)1 AlarmDefinition (alma.alarmsystem.alarmmessage.generated.AlarmDefinition)1 Child (alma.alarmsystem.alarmmessage.generated.Child)1 Parent (alma.alarmsystem.alarmmessage.generated.Parent)1 ReductionDefinitions (alma.alarmsystem.alarmmessage.generated.ReductionDefinitions)1 ReductionLinkType (alma.alarmsystem.alarmmessage.generated.ReductionLinkType)1 Threshold (alma.alarmsystem.alarmmessage.generated.Threshold)1 ACSCategoryDAOImpl (cl.utfsm.acs.acg.dao.ACSCategoryDAOImpl)1 ACSSourceDAOImpl (cl.utfsm.acs.acg.dao.ACSSourceDAOImpl)1