net.sf.emarket.quote.repository
Class JdbcQuoteDaoImpl

java.lang.Object
  extended by net.sf.emarket.quote.repository.JdbcQuoteDaoImpl
All Implemented Interfaces:
IQuoteDao

@Repository
public class JdbcQuoteDaoImpl
extends java.lang.Object
implements IQuoteDao


Constructor Summary
JdbcQuoteDaoImpl()
           
 
Method Summary
 void addQuote(Quote quote)
           
 void addQuoteHistory(Quote quote)
           
 void createTemplate(javax.sql.DataSource jdbcDatasource)
           
 Quote deleteQuote(Quote quote)
           
 long generateQuoteId()
           
 java.util.List<Quote> getAllQuotes()
           
 Quote getQuote(Quote q)
           
 Quote getQuote(java.lang.String symbol)
           
 java.util.List<Quote> getQuotes(java.util.List<java.lang.String> symbols)
           
 Quote updateQuote(Quote quote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcQuoteDaoImpl

public JdbcQuoteDaoImpl()
Method Detail

createTemplate

public void createTemplate(@Qualifier(value="jdbcDataSource")
                           javax.sql.DataSource jdbcDatasource)

addQuote

public void addQuote(Quote quote)
Specified by:
addQuote in interface IQuoteDao

addQuoteHistory

public void addQuoteHistory(Quote quote)
Specified by:
addQuoteHistory in interface IQuoteDao

deleteQuote

public Quote deleteQuote(Quote quote)
Specified by:
deleteQuote in interface IQuoteDao

getQuote

public Quote getQuote(java.lang.String symbol)
Specified by:
getQuote in interface IQuoteDao

getQuote

public Quote getQuote(Quote q)
Specified by:
getQuote in interface IQuoteDao

updateQuote

public Quote updateQuote(Quote quote)
Specified by:
updateQuote in interface IQuoteDao

generateQuoteId

public long generateQuoteId()
Specified by:
generateQuoteId in interface IQuoteDao

getAllQuotes

public java.util.List<Quote> getAllQuotes()
Specified by:
getAllQuotes in interface IQuoteDao

getQuotes

public java.util.List<Quote> getQuotes(java.util.List<java.lang.String> symbols)
Specified by:
getQuotes in interface IQuoteDao


Copyright © 2009. All Rights Reserved.