org.springframework.batch.sample.domain.trade
Class CustomerUpdate
java.lang.Object
org.springframework.batch.sample.domain.trade.CustomerUpdate
public class CustomerUpdate
- extends Object
Immutable Value Object representing an update to the customer as stored in the database.
This object has the customer name, credit ammount, 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
CustomerUpdate
public CustomerUpdate(CustomerOperation operation,
String customerName,
BigDecimal credit)
getOperation
public CustomerOperation getOperation()
getCustomerName
public String getCustomerName()
getCredit
public BigDecimal getCredit()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2009 SpringSource. All Rights Reserved.