org.ferris.yahoo.finance.jmce.handler
Class YearEndPriceHandlerBySql

java.lang.Object
  extended by org.ferris.yahoo.finance.jmce.handler.AbstractHandlerBySql
      extended by org.ferris.yahoo.finance.jmce.handler.YearEndPriceHandlerBySql
All Implemented Interfaces:
YearEndPriceHandler

public class YearEndPriceHandlerBySql
extends AbstractHandlerBySql
implements YearEndPriceHandler

Author:
Michael Remijan [mjremijan@yahoo.com]

Field Summary
 CalendarHandler calendarHandler
           
 
Constructor Summary
YearEndPriceHandlerBySql()
           
 
Method Summary
 CalendarHandler getCalendarHandler()
           
 PrimaryKeyHandler getPrimaryKeyHandler()
           
 YearEndPrice getYearEndPriceForDow(int year)
           
 YearEndPrice getYearEndPriceForGold(int year)
           
 YearEndPrice getYearEndPriceForMarket(int year, Market.Code marketCode)
           
 YearEndPrice getYearEndPriceForNasdaq(int year)
           
 YearEndPrice getYearEndPriceForOil(int year)
           
 YearEndPrice getYearEndPriceForStandardAndPoors500(int year)
           
 void saveYearEndPriceForDow(double price, int year)
           
 void saveYearEndPriceForGold(double price, int year)
           
 void saveYearEndPriceForNasdaq(double price, int year)
           
 void saveYearEndPriceForOil(double price, int year)
           
 void saveYearEndPriceForStandardAndPoors500(double price, int year)
           
 void setCalendarHandler(CalendarHandler calendarHandler)
           
 void setPrimaryKeyHandler(PrimaryKeyHandler primaryKeyHandler)
           
 void setYearEndPriceForMarket(double price, int year, Market.Code marketCode)
           
 
Methods inherited from class org.ferris.yahoo.finance.jmce.handler.AbstractHandlerBySql
close, executeQuery, executeUpdate, getConnection, getDataSource, prepareStatement, setDataSource, setDate, setDouble, setInt, setString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

calendarHandler

public CalendarHandler calendarHandler
Constructor Detail

YearEndPriceHandlerBySql

public YearEndPriceHandlerBySql()
Method Detail

getCalendarHandler

public CalendarHandler getCalendarHandler()

setCalendarHandler

public void setCalendarHandler(CalendarHandler calendarHandler)

getPrimaryKeyHandler

public PrimaryKeyHandler getPrimaryKeyHandler()

setPrimaryKeyHandler

public void setPrimaryKeyHandler(PrimaryKeyHandler primaryKeyHandler)

saveYearEndPriceForDow

public void saveYearEndPriceForDow(double price,
                                   int year)
Specified by:
saveYearEndPriceForDow in interface YearEndPriceHandler

saveYearEndPriceForNasdaq

public void saveYearEndPriceForNasdaq(double price,
                                      int year)
Specified by:
saveYearEndPriceForNasdaq in interface YearEndPriceHandler

saveYearEndPriceForStandardAndPoors500

public void saveYearEndPriceForStandardAndPoors500(double price,
                                                   int year)
Specified by:
saveYearEndPriceForStandardAndPoors500 in interface YearEndPriceHandler

saveYearEndPriceForOil

public void saveYearEndPriceForOil(double price,
                                   int year)
Specified by:
saveYearEndPriceForOil in interface YearEndPriceHandler

saveYearEndPriceForGold

public void saveYearEndPriceForGold(double price,
                                    int year)
Specified by:
saveYearEndPriceForGold in interface YearEndPriceHandler

getYearEndPriceForGold

public YearEndPrice getYearEndPriceForGold(int year)
Specified by:
getYearEndPriceForGold in interface YearEndPriceHandler

getYearEndPriceForOil

public YearEndPrice getYearEndPriceForOil(int year)
Specified by:
getYearEndPriceForOil in interface YearEndPriceHandler

getYearEndPriceForStandardAndPoors500

public YearEndPrice getYearEndPriceForStandardAndPoors500(int year)
Specified by:
getYearEndPriceForStandardAndPoors500 in interface YearEndPriceHandler

getYearEndPriceForNasdaq

public YearEndPrice getYearEndPriceForNasdaq(int year)
Specified by:
getYearEndPriceForNasdaq in interface YearEndPriceHandler

getYearEndPriceForDow

public YearEndPrice getYearEndPriceForDow(int year)
Specified by:
getYearEndPriceForDow in interface YearEndPriceHandler

getYearEndPriceForMarket

public YearEndPrice getYearEndPriceForMarket(int year,
                                             Market.Code marketCode)

setYearEndPriceForMarket

public void setYearEndPriceForMarket(double price,
                                     int year,
                                     Market.Code marketCode)


Copyright © May 23, 2006-2012 The Ferris Foundation. All Rights Reserved.