org.springframework.batch.sample.domain.trade.internal

## Class JdbcTradeDao

- java.lang.Object
- - org.springframework.batch.sample.domain.trade.internal.JdbcTradeDao

- All Implemented Interfaces:
    TradeDao

      public class JdbcTradeDao
      extends java.lang.Object
      implements TradeDao

  Writes a Trade object to a database
  Author:
    Robert Kasanicky

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JdbcTradeDao()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setDataSource(javax.sql.DataSource dataSource)`
    `void` | `setIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer incrementer)`
    `void` | `writeTrade(Trade trade)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### JdbcTradeDao

          public JdbcTradeDao()

  - ### Method Detail

    - #### writeTrade

          public void writeTrade(Trade trade)

      Specified by:
        `writeTrade` in interface `TradeDao`
      See Also:
        `TradeDao`

    - #### setDataSource

          public void setDataSource(javax.sql.DataSource dataSource)

    - #### setIncrementer

          public void setIncrementer(org.springframework.jdbc.support.incrementer.DataFieldMaxValueIncrementer incrementer)