Venice 0.751beta

nz.org.venice.alert
Class AlertFactory

java.lang.Object
  extended bynz.org.venice.alert.AlertFactory

public class AlertFactory
extends java.lang.Object

Contains static methods for creating alerts and File/Database Alert Readers and Writers based on the user preference.

Author:
Mark Hummel
See Also:
FileAlertWriter, DatabaseAlertWriter, PreferencesManager

Constructor Summary
AlertFactory()
           
 
Method Summary
static DatabaseAlertReader createDatabaseAlertReader()
          Create a reader which retrieves database alerts
static DatabaseAlertWriter createDatabaseAlertWriter()
          Create a writers which creates database alerts directly using the user preferences.
static FileAlertReader createFileAlertReader()
          Create a reader which retrieves file alerts from the filesystem.
static FileAlertWriter createFileAlertWriter()
          Create a writer which creates file alerts directly using the user preferences.
static Alert newAlert(Symbol symbol, TradingDate startDate, TradingDate endDate, java.lang.String target, java.lang.String boundType, java.lang.String fieldType, boolean enabled, TradingDate dateSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlertFactory

public AlertFactory()
Method Detail

createFileAlertReader

public static FileAlertReader createFileAlertReader()
Create a reader which retrieves file alerts from the filesystem.

Returns:
the file alert reader

createDatabaseAlertReader

public static DatabaseAlertReader createDatabaseAlertReader()
Create a reader which retrieves database alerts

Returns:
the database alert reader

createFileAlertWriter

public static FileAlertWriter createFileAlertWriter()
Create a writer which creates file alerts directly using the user preferences.

Returns:
the file alert writer

createDatabaseAlertWriter

public static DatabaseAlertWriter createDatabaseAlertWriter()
Create a writers which creates database alerts directly using the user preferences.

Returns:
the database alert writer

newAlert

public static Alert newAlert(Symbol symbol,
                             TradingDate startDate,
                             TradingDate endDate,
                             java.lang.String target,
                             java.lang.String boundType,
                             java.lang.String fieldType,
                             boolean enabled,
                             TradingDate dateSet)
                      throws AlertException
Throws:
AlertException

Venice 0.751beta