net.sf.emarket.trade.repository
Class JdbcOrderBookDaoImpl

java.lang.Object
  extended by net.sf.emarket.trade.repository.JdbcOrderBookDaoImpl
All Implemented Interfaces:
java.io.Serializable, IOrderBookDao

@Repository
public class JdbcOrderBookDaoImpl
extends java.lang.Object
implements IOrderBookDao

See Also:
Serialized Form

Nested Class Summary
 class JdbcOrderBookDaoImpl.OrderBookMapper
           
 
Constructor Summary
JdbcOrderBookDaoImpl()
           
 
Method Summary
 void addOrder(ReceivedOrder order)
           
 void createTemplate(javax.sql.DataSource jdbcDatasource)
           
 void deleteOrder(ReceivedOrder order)
           
 ReceivedOrder getOrderById(java.lang.String orderId)
           
 java.util.List<ReceivedOrder> getOrdersBySymbol(java.lang.String symbol)
           
 java.util.List<ReceivedOrder> getOrdersBySymbolAndType(java.lang.String symbol, java.lang.String type)
           
 void updateOrder(ReceivedOrder order)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcOrderBookDaoImpl

public JdbcOrderBookDaoImpl()
Method Detail

createTemplate

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

addOrder

public void addOrder(ReceivedOrder order)
Specified by:
addOrder in interface IOrderBookDao

deleteOrder

public void deleteOrder(ReceivedOrder order)
Specified by:
deleteOrder in interface IOrderBookDao

updateOrder

public void updateOrder(ReceivedOrder order)
Specified by:
updateOrder in interface IOrderBookDao

getOrderById

public ReceivedOrder getOrderById(java.lang.String orderId)
Specified by:
getOrderById in interface IOrderBookDao

getOrdersBySymbol

public java.util.List<ReceivedOrder> getOrdersBySymbol(java.lang.String symbol)
Specified by:
getOrdersBySymbol in interface IOrderBookDao

getOrdersBySymbolAndType

public java.util.List<ReceivedOrder> getOrdersBySymbolAndType(java.lang.String symbol,
                                                              java.lang.String type)
Specified by:
getOrdersBySymbolAndType in interface IOrderBookDao


Copyright © 2009. All Rights Reserved.