Class Order
- java.lang.Object
- org.springframework.batch.sample.domain.order.Order
public class Order extends java.lang.Object
Field Summary
Fields Modifier and Type Field Description static java.lang.StringLINE_ID_FOOTERstatic java.lang.StringLINE_ID_HEADER
Constructor Summary
Constructors Constructor Description Order()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)BillingInfogetBilling()AddressgetBillingAddress()CustomergetCustomer()java.util.List<LineItem>getLineItems()java.util.DategetOrderDate()longgetOrderId()ShippingInfogetShipping()AddressgetShippingAddress()intgetTotalItems()intgetTotalLines()java.math.BigDecimalgetTotalPrice()inthashCode()voidsetBilling(BillingInfo billing)voidsetBillingAddress(Address billingAddress)voidsetCustomer(Customer customer)voidsetLineItems(java.util.List<LineItem> lineItems)voidsetOrderDate(java.util.Date orderDate)voidsetOrderId(long orderId)voidsetShipping(ShippingInfo shipping)voidsetShippingAddress(Address shippingAddress)voidsetTotalItems(int totalItems)voidsetTotalLines(int totalLines)voidsetTotalPrice(java.math.BigDecimal totalPrice)java.lang.StringtoString()
Field Detail
LINE_ID_HEADER
public static final java.lang.String LINE_ID_HEADER
- See Also:
- Constant Field Values
LINE_ID_FOOTER
public static final java.lang.String LINE_ID_FOOTER
- See Also:
- Constant Field Values
Method Detail
getBilling
public BillingInfo getBilling()
setBilling
public void setBilling(BillingInfo billing)
getBillingAddress
public Address getBillingAddress()
setBillingAddress
public void setBillingAddress(Address billingAddress)
getCustomer
public Customer getCustomer()
setCustomer
public void setCustomer(Customer customer)
getLineItems
public java.util.List<LineItem> getLineItems()
setLineItems
public void setLineItems(java.util.List<LineItem> lineItems)
getOrderDate
public java.util.Date getOrderDate()
setOrderDate
public void setOrderDate(java.util.Date orderDate)
getOrderId
public long getOrderId()
setOrderId
public void setOrderId(long orderId)
getShipping
public ShippingInfo getShipping()
setShipping
public void setShipping(ShippingInfo shipping)
getShippingAddress
public Address getShippingAddress()
setShippingAddress
public void setShippingAddress(Address shippingAddress)
getTotalPrice
public java.math.BigDecimal getTotalPrice()
setTotalPrice
public void setTotalPrice(java.math.BigDecimal totalPrice)
getTotalItems
public int getTotalItems()
setTotalItems
public void setTotalItems(int totalItems)
getTotalLines
public int getTotalLines()
setTotalLines
public void setTotalLines(int totalLines)
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object