org.opennms.web.outage
Class DaoWebOutageRepository

java.lang.Object
  extended by org.opennms.web.outage.DaoWebOutageRepository
All Implemented Interfaces:
WebOutageRepository

public class DaoWebOutageRepository
extends Object
implements WebOutageRepository

DaoWebOutageRepository class.

Since:
1.8.1
Version:
$Id: $
Author:
brozow

Constructor Summary
DaoWebOutageRepository()
           
 
Method Summary
 int countCurrentOutages()
          Count the current number of nodes with outages.
 int countMatchingOutages(OutageCriteria criteria)
          countMatchingOutages
 int countMatchingOutageSummaries(OutageCriteria criteria)
          countMatchingOutageSummaries
 OutageSummary[] getCurrentOutages(int rows)
          Get the current list of outages by node.
 Outage[] getMatchingOutages(OutageCriteria criteria)
          getMatchingOutages
 OutageSummary[] getMatchingOutageSummaries(OutageCriteria criteria)
          getMatchingOutageSummaries
 Outage getOutage(int OutageId)
          getOutage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DaoWebOutageRepository

public DaoWebOutageRepository()
Method Detail

countMatchingOutageSummaries

@Transactional
public int countMatchingOutageSummaries(OutageCriteria criteria)

countMatchingOutageSummaries

Specified by:
countMatchingOutageSummaries in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
a int.

countMatchingOutages

@Transactional
public int countMatchingOutages(OutageCriteria criteria)

countMatchingOutages

Specified by:
countMatchingOutages in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
a int.

getMatchingOutageSummaries

@Transactional
public OutageSummary[] getMatchingOutageSummaries(OutageCriteria criteria)

getMatchingOutageSummaries

Specified by:
getMatchingOutageSummaries in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
an array of OutageSummary objects.

getMatchingOutages

@Transactional
public Outage[] getMatchingOutages(OutageCriteria criteria)

getMatchingOutages

Specified by:
getMatchingOutages in interface WebOutageRepository
Parameters:
criteria - a OutageCriteria object.
Returns:
an array of Outage objects.

getOutage

@Transactional
public Outage getOutage(int OutageId)

getOutage

Specified by:
getOutage in interface WebOutageRepository
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 interface WebOutageRepository

getCurrentOutages

@Transactional
public OutageSummary[] getCurrentOutages(int rows)
Description copied from interface: WebOutageRepository
Get the current list of outages by node.

Specified by:
getCurrentOutages in interface WebOutageRepository
Parameters:
rows - the number of outages to return.
Returns:


Copyright © 2011. All Rights Reserved.