Class Order
java.lang.Object
org.mybatis.jpetstore.domain.Order
- All Implemented Interfaces:
Serializable
The Class Order.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLineItem(CartItem cartItem) Add line item.voidaddLineItem(LineItem lineItem) Add line item.Gets the bill address1.Gets the bill address2.Gets the bill city.Gets the bill country.Gets the bill state.Gets the bill to first name.Gets the bill to last name.Gets the bill zip.Gets the card type.Gets the courier.Gets the credit card.Gets the expiry date.Gets the line items.Gets the locale.Gets the order date.intGets the order id.Gets the ship address1.Gets the ship address2.Gets the ship city.Gets the ship country.Gets the ship state.Gets the ship to first name.Gets the ship to last name.Gets the ship zip.Gets the status.Gets the total price.Gets the username.voidInits the order.voidsetBillAddress1(String billAddress1) Sets the bill address1.voidsetBillAddress2(String billAddress2) Sets the bill address2.voidsetBillCity(String billCity) Sets the bill city.voidsetBillCountry(String billCountry) Sets the bill country.voidsetBillState(String billState) Sets the bill state.voidsetBillToFirstName(String billToFirstName) Sets the bill to first name.voidsetBillToLastName(String billToLastName) Sets the bill to last name.voidsetBillZip(String billZip) Sets the bill zip.voidsetCardType(String cardType) Sets the card type.voidsetCourier(String courier) Sets the courier.voidsetCreditCard(String creditCard) Sets the credit card.voidsetExpiryDate(String expiryDate) Sets the expiry date.voidsetLineItems(List<LineItem> lineItems) Sets the line items.voidSets the locale.voidsetOrderDate(Date orderDate) Sets the order date.voidsetOrderId(int orderId) Sets the order id.voidsetShipAddress1(String shipAddress1) Sets the ship address1.voidsetShipAddress2(String shipAddress2) Sets the ship address2.voidsetShipCity(String shipCity) Sets the ship city.voidsetShipCountry(String shipCountry) Sets the ship country.voidsetShipState(String shipState) Sets the ship state.voidsetShipToFirstName(String shipFoFirstName) Sets the ship to first name.voidsetShipToLastName(String shipToLastName) Sets the ship to last name.voidsetShipZip(String shipZip) Sets the ship zip.voidSets the status.voidsetTotalPrice(BigDecimal totalPrice) Sets the total price.voidsetUsername(String username) Sets the username.
-
Constructor Details
-
Order
public Order()
-
-
Method Details
-
getOrderId
public int getOrderId()Gets the order id.- Returns:
- the order id
-
setOrderId
public void setOrderId(int orderId) Sets the order id.- Parameters:
orderId- the order id
-
getUsername
-
setUsername
-
getOrderDate
-
setOrderDate
Sets the order date.- Parameters:
orderDate- the order date
-
getShipAddress1
-
setShipAddress1
Sets the ship address1.- Parameters:
shipAddress1- the ship address1
-
getShipAddress2
-
setShipAddress2
Sets the ship address2.- Parameters:
shipAddress2- the ship address2
-
getShipCity
-
setShipCity
-
getShipState
-
setShipState
Sets the ship state.- Parameters:
shipState- the ship state
-
getShipZip
-
setShipZip
-
getShipCountry
-
setShipCountry
Sets the ship country.- Parameters:
shipCountry- the ship country
-
getBillAddress1
-
setBillAddress1
Sets the bill address1.- Parameters:
billAddress1- the bill address1
-
getBillAddress2
-
setBillAddress2
Sets the bill address2.- Parameters:
billAddress2- the bill address2
-
getBillCity
-
setBillCity
-
getBillState
-
setBillState
Sets the bill state.- Parameters:
billState- the bill state
-
getBillZip
-
setBillZip
-
getBillCountry
-
setBillCountry
Sets the bill country.- Parameters:
billCountry- the bill country
-
getCourier
-
setCourier
-
getTotalPrice
-
setTotalPrice
Sets the total price.- Parameters:
totalPrice- the total price
-
getBillToFirstName
-
setBillToFirstName
Sets the bill to first name.- Parameters:
billToFirstName- the bill to first name
-
getBillToLastName
-
setBillToLastName
Sets the bill to last name.- Parameters:
billToLastName- the bill to last name
-
getShipToFirstName
-
setShipToFirstName
Sets the ship to first name.- Parameters:
shipFoFirstName- the ship fo first name
-
getShipToLastName
-
setShipToLastName
Sets the ship to last name.- Parameters:
shipToLastName- the ship to last name
-
getCreditCard
-
setCreditCard
Sets the credit card.- Parameters:
creditCard- the credit card
-
getExpiryDate
-
setExpiryDate
Sets the expiry date.- Parameters:
expiryDate- the expiry date
-
getCardType
-
setCardType
-
getLocale
-
setLocale
-
getStatus
-
setStatus
-
setLineItems
-
getLineItems
-
initOrder
-
addLineItem
-
addLineItem
-