Venice 0.751beta

nz.org.venice.alert
Class DatabaseAlertWriter

java.lang.Object
  extended bynz.org.venice.alert.DatabaseAlertWriter
All Implemented Interfaces:
AlertWriter

public class DatabaseAlertWriter
extends java.lang.Object
implements AlertWriter

Store new alerts in the database. Update, enable and delete alerts already stored.

Author:
Mark Hummel
See Also:
AlertReader, AlertWriter

Constructor Summary
DatabaseAlertWriter(DatabaseManager manager)
           
 
Method Summary
 void disable(Alert alert)
          Enable an alert.
 void enable(Alert alert)
          Enable an alert.
 void remove(Alert alert)
          Remove a specific alert.
 void remove(Symbol symbol)
           
 void set(GondolaAlert alert)
          Set the alert.
 void set(OHLCVAlert alert)
          Set the alert.
 void update(Alert alert, GondolaAlert newAlert)
          Update the alert and make it a GondolaAlert.
 void update(Alert alert, OHLCVAlert newAlert)
          Update the alert and make it a OHLCVAlert.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseAlertWriter

public DatabaseAlertWriter(DatabaseManager manager)
Method Detail

set

public void set(OHLCVAlert alert)
Description copied from interface: AlertWriter
Set the alert.

Specified by:
set in interface AlertWriter
Parameters:
alert - The alert to add

set

public void set(GondolaAlert alert)
Description copied from interface: AlertWriter
Set the alert.

Specified by:
set in interface AlertWriter
Parameters:
alert - The alert to add

update

public void update(Alert alert,
                   OHLCVAlert newAlert)
Description copied from interface: AlertWriter
Update the alert and make it a OHLCVAlert.

Specified by:
update in interface AlertWriter
Parameters:
alert - The alert to modify
newAlert - The alert settings to use for modification

update

public void update(Alert alert,
                   GondolaAlert newAlert)
Description copied from interface: AlertWriter
Update the alert and make it a GondolaAlert.

Specified by:
update in interface AlertWriter
Parameters:
alert - The alert to modify
newAlert - The alert settings to use for modification

enable

public void enable(Alert alert)
Description copied from interface: AlertWriter
Enable an alert.

Specified by:
enable in interface AlertWriter
Parameters:
alert - The alert to enable.

disable

public void disable(Alert alert)
Description copied from interface: AlertWriter
Enable an alert.

Specified by:
disable in interface AlertWriter
Parameters:
alert - The alert to disable.

remove

public void remove(Alert alert)
Description copied from interface: AlertWriter
Remove a specific alert.

Specified by:
remove in interface AlertWriter
Parameters:
alert - Tne alert to remove.

remove

public void remove(Symbol symbol)

Venice 0.751beta