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

## Class JdbcCustomerDebitDao

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

- All Implemented Interfaces:
    CustomerDebitDao

      public class JdbcCustomerDebitDao
      extends java.lang.Object
      implements CustomerDebitDao

  Reduces customer's credit by the provided amount.
  Author:
    Robert Kasanicky

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `JdbcCustomerDebitDao()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `setDataSource(javax.sql.DataSource dataSource)`
    `void` | `write(CustomerDebit customerDebit)`

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

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

- - ### Constructor Detail

    - #### JdbcCustomerDebitDao

          public JdbcCustomerDebitDao()

  - ### Method Detail

    - #### write

          public void write(CustomerDebit customerDebit)

      Specified by:
        `write` in interface `CustomerDebitDao`

    - #### setDataSource

          @Autowired
          public void setDataSource(javax.sql.DataSource dataSource)