com.ibm.websphere.samples.pbw.jpa
Class Order
java.lang.Object
com.ibm.websphere.samples.pbw.jpa.Order
@Entity(name="Order")
public class Order
- extends Object
Bean mapping for the ORDER1 table.
Constructor Summary |
Order()
|
Order(Customer customer,
String billName,
String billAddr1,
String billAddr2,
String billCity,
String billState,
String billZip,
String billPhone,
String shipName,
String shipAddr1,
String shipAddr2,
String shipCity,
String shipState,
String shipZip,
String shipPhone,
String creditCard,
String ccNum,
String ccExpireMonth,
String ccExpireYear,
String cardHolder,
int shippingMethod,
Collection<OrderItem> items)
Constructor to create an Order. |
Order(String orderID)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORDER_INFO_TABLE_NAME
public static final String ORDER_INFO_TABLE_NAME
- See Also:
- Constant Field Values
ORDER_ITEMS_TABLE_NAME
public static final String ORDER_ITEMS_TABLE_NAME
- See Also:
- Constant Field Values
Order
public Order(Customer customer,
String billName,
String billAddr1,
String billAddr2,
String billCity,
String billState,
String billZip,
String billPhone,
String shipName,
String shipAddr1,
String shipAddr2,
String shipCity,
String shipState,
String shipZip,
String shipPhone,
String creditCard,
String ccNum,
String ccExpireMonth,
String ccExpireYear,
String cardHolder,
int shippingMethod,
Collection<OrderItem> items)
- Constructor to create an Order.
- Parameters:
customer
- - customer who created the orderbillName
- - billing namebillAddr1
- - billing address line 1billAddr2
- - billing address line 2billCity
- - billing address citybillState
- - billing address statebillZip
- - billing address zip codebillPhone
- - billing phoneshipName
- - shippng nameshipAddr1
- - shippng address line 1shipAddr2
- - shippng address line 2shipCity
- - shippng address cityshipState
- - shippng address stateshipZip
- - shippng address zip codeshipPhone
- - shippng phonecreditCard
- - credit cardccNum
- - credit card numberccExpireMonth
- - credit card expiration monthccExpireYear
- - credit card expiration yearcardHolder
- - credit card holder nameshippingMethod
- int of shipping method useditems
- vector of StoreItems ordered
Order
public Order(String orderID)
Order
public Order()
getBillAddr1
public String getBillAddr1()
setBillAddr1
public void setBillAddr1(String billAddr1)
getBillAddr2
public String getBillAddr2()
setBillAddr2
public void setBillAddr2(String billAddr2)
getBillCity
public String getBillCity()
setBillCity
public void setBillCity(String billCity)
getBillName
public String getBillName()
setBillName
public void setBillName(String billName)
getBillPhone
public String getBillPhone()
setBillPhone
public void setBillPhone(String billPhone)
getBillState
public String getBillState()
setBillState
public void setBillState(String billState)
getBillZip
public String getBillZip()
setBillZip
public void setBillZip(String billZip)
getCardHolder
public String getCardHolder()
setCardHolder
public void setCardHolder(String cardHolder)
getCcExpireMonth
public String getCcExpireMonth()
setCcExpireMonth
public void setCcExpireMonth(String ccExpireMonth)
getCcExpireYear
public String getCcExpireYear()
setCcExpireYear
public void setCcExpireYear(String ccExpireYear)
getCcNum
public String getCcNum()
setCcNum
public void setCcNum(String ccNum)
getCreditCard
public String getCreditCard()
setCreditCard
public void setCreditCard(String creditCard)
getCustomer
public Customer getCustomer()
setCustomer
public void setCustomer(Customer customer)
getItems
public Collection<OrderItem> getItems()
setItems
public void setItems(Collection<OrderItem> items)
getOrderID
public String getOrderID()
setOrderID
public void setOrderID(String orderID)
getOrderItems
public Collection getOrderItems()
setOrderItems
public void setOrderItems(Collection orderItems)
getProfit
public float getProfit()
setProfit
public void setProfit(float profit)
getSellDate
public String getSellDate()
setSellDate
public void setSellDate(String sellDate)
getShipAddr1
public String getShipAddr1()
setShipAddr1
public void setShipAddr1(String shipAddr1)
getShipAddr2
public String getShipAddr2()
setShipAddr2
public void setShipAddr2(String shipAddr2)
getShipCity
public String getShipCity()
setShipCity
public void setShipCity(String shipCity)
getShipName
public String getShipName()
setShipName
public void setShipName(String shipName)
getShipPhone
public String getShipPhone()
setShipPhone
public void setShipPhone(String shipPhone)
getShippingMethod
public int getShippingMethod()
setShippingMethod
public void setShippingMethod(int shippingMethod)
getShipZip
public String getShipZip()
setShipZip
public void setShipZip(String shipZip)
getShipState
public String getShipState()
setShipState
public void setShipState(String shipState)
Copyright © 2011. All Rights Reserved.