Venice 0.751beta

nz.org.venice.alert
Class DatabaseAlertReader

java.lang.Object
  extended bynz.org.venice.alert.DatabaseAlertReader
All Implemented Interfaces:
AlertReader

public class DatabaseAlertReader
extends java.lang.Object
implements AlertReader

Retrieve alerts stored in the database.

Author:
Mark Hummel
See Also:
AlertReader

Constructor Summary
DatabaseAlertReader(DatabaseManager manager)
           
 
Method Summary
 java.util.List getAlerts()
          Get all alerts currently stored.
 java.util.List getAlertsBySymbol(Symbol symbol)
          Get all alerts currently stored for the symbol.
 java.util.List getAlertsBySymbolList(java.util.List symbols)
          Get all alerts currently stored for the given symbols.
protected  java.lang.String getUUID(Alert alert)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseAlertReader

public DatabaseAlertReader(DatabaseManager manager)
Method Detail

getAlerts

public java.util.List getAlerts()
Get all alerts currently stored.

Specified by:
getAlerts in interface AlertReader
Returns:
A list of all the alerts currently stored.

getAlertsBySymbol

public java.util.List getAlertsBySymbol(Symbol symbol)
                                 throws AlertException
Get all alerts currently stored for the symbol.

Specified by:
getAlertsBySymbol in interface AlertReader
Parameters:
symbol - The symbol to filter the alerts on.
Returns:
A list of all the alerts for this symbol.
Throws:
AlertException

getAlertsBySymbolList

public java.util.List getAlertsBySymbolList(java.util.List symbols)
                                     throws AlertException
Description copied from interface: AlertReader
Get all alerts currently stored for the given symbols.

Specified by:
getAlertsBySymbolList in interface AlertReader
Parameters:
symbols - The symbols to filter the alerts on.
Returns:
A list of all the alerts for this symbol.
Throws:
AlertException

getUUID

protected java.lang.String getUUID(Alert alert)

Venice 0.751beta