Package org.opennms.web.outage
Class DaoWebOutageRepository
- java.lang.Object
-
- org.opennms.web.outage.DaoWebOutageRepository
-
- All Implemented Interfaces:
WebOutageRepository
,org.springframework.beans.factory.InitializingBean
public class DaoWebOutageRepository extends java.lang.Object implements WebOutageRepository, org.springframework.beans.factory.InitializingBean
DaoWebOutageRepository class.
- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- brozow
-
-
Constructor Summary
Constructors Constructor Description DaoWebOutageRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
int
countCurrentOutages()
Count the current number of nodes with outages.int
countMatchingOutages(OutageCriteria criteria)
countMatchingOutagesint
countMatchingOutageSummaries(OutageCriteria criteria)
countMatchingOutageSummariesOutageSummary[]
getCurrentOutages(int rows)
Get the current list of outages by node.Outage[]
getMatchingOutages(OutageCriteria criteria)
getMatchingOutagesOutageSummary[]
getMatchingOutageSummaries(OutageCriteria criteria)
getMatchingOutageSummariesOutage
getOutage(int OutageId)
getOutage
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
-
countMatchingOutageSummaries
@Transactional public int countMatchingOutageSummaries(OutageCriteria criteria)
countMatchingOutageSummaries
- Specified by:
countMatchingOutageSummaries
in interfaceWebOutageRepository
- Parameters:
criteria
- aOutageCriteria
object.- Returns:
- a int.
-
countMatchingOutages
@Transactional public int countMatchingOutages(OutageCriteria criteria)
countMatchingOutages
- Specified by:
countMatchingOutages
in interfaceWebOutageRepository
- Parameters:
criteria
- aOutageCriteria
object.- Returns:
- a int.
-
getMatchingOutageSummaries
@Transactional public OutageSummary[] getMatchingOutageSummaries(OutageCriteria criteria)
getMatchingOutageSummaries
- Specified by:
getMatchingOutageSummaries
in interfaceWebOutageRepository
- Parameters:
criteria
- aOutageCriteria
object.- Returns:
- an array of
OutageSummary
objects.
-
getMatchingOutages
@Transactional public Outage[] getMatchingOutages(OutageCriteria criteria)
getMatchingOutages
- Specified by:
getMatchingOutages
in interfaceWebOutageRepository
- Parameters:
criteria
- aOutageCriteria
object.- Returns:
- an array of
Outage
objects.
-
getOutage
@Transactional public Outage getOutage(int OutageId)
getOutage
- Specified by:
getOutage
in interfaceWebOutageRepository
- Parameters:
OutageId
- a int.- Returns:
- a
Outage
object.
-
countCurrentOutages
@Transactional public int countCurrentOutages()
Description copied from interface:WebOutageRepository
Count the current number of nodes with outages.- Specified by:
countCurrentOutages
in interfaceWebOutageRepository
-
getCurrentOutages
@Transactional public OutageSummary[] getCurrentOutages(int rows)
Description copied from interface:WebOutageRepository
Get the current list of outages by node.- Specified by:
getCurrentOutages
in interfaceWebOutageRepository
- Parameters:
rows
- the number of outages to return.- Returns:
-
-