org.springframework.batch.sample.domain.trade

## Class CustomerUpdate

- java.lang.Object
- - org.springframework.batch.sample.domain.trade.CustomerUpdate

-     public class CustomerUpdate
      extends java.lang.Object

  Immutable Value Object representing an update to the customer as stored in the database. This object has the customer name, credit amount, and the operation to be performed on them. In the case of an add, a new customer will be entered with the appropriate credit. In the case of an update, the customer's credit is considered an absolute update. Deletes are currently not supported, but can still be read in from a file.
  Since:
    2.0
  Author:
    Lucas Ward

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `CustomerUpdate(CustomerOperation operation, java.lang.String customerName, java.math.BigDecimal credit)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.math.BigDecimal` | `getCredit()`
    `java.lang.String` | `getCustomerName()`
    `CustomerOperation` | `getOperation()`
    `java.lang.String` | `toString()`

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

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

- - ### Constructor Detail

    - #### CustomerUpdate

          public CustomerUpdate(CustomerOperation operation,
                                java.lang.String customerName,
                                java.math.BigDecimal credit)

  - ### Method Detail

    - #### getOperation

          public CustomerOperation getOperation()

    - #### getCustomerName

          public java.lang.String getCustomerName()

    - #### getCredit

          public java.math.BigDecimal getCredit()

    - #### toString

          public java.lang.String toString()

      Overrides:
        `toString` in class `java.lang.Object`