类 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.- 从以下版本开始:
- 2.0
- 作者:
- Lucas Ward
构造器概要
构造器 构造器 说明 CustomerUpdate(CustomerOperation operation, java.lang.String customerName, java.math.BigDecimal credit)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.math.BigDecimal
getCredit()
java.lang.String
getCustomerName()
CustomerOperation
getOperation()
java.lang.String
toString()
构造器详细资料
CustomerUpdate
public CustomerUpdate(CustomerOperation operation, java.lang.String customerName, java.math.BigDecimal credit)
方法详细资料
getOperation
public CustomerOperation getOperation()
getCustomerName
public java.lang.String getCustomerName()
getCredit
public java.math.BigDecimal getCredit()
toString
public java.lang.String toString()
- 覆盖:
toString
在类中java.lang.Object