com.ibm.websphere.samples.pbw.war
Class OrderInfo

java.lang.Object
  extended by com.ibm.websphere.samples.pbw.war.OrderInfo
All Implemented Interfaces:
Serializable

public class OrderInfo
extends Object
implements Serializable

A class to hold an order's data.

See Also:
Serialized Form

Constructor Summary
OrderInfo(Order order)
          Constructor to create an OrderInfo using an Order.
OrderInfo(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, int shippingMethod, String orderID)
          Constructor to create an OrderInfo by passing each field.
 
Method Summary
 String getBillAddr1()
           
 String getBillAddr2()
           
 String getBillCity()
           
 String getBillName()
           
 String getBillPhone()
           
 String getBillState()
           
 String getBillZip()
           
 String getCardExpMonth()
           
 String getCardExpYear()
           
 String[] getCardExpYears()
           
 String getCardholderName()
           
 String getCardName()
           
 String getCardNum()
           
 String getID()
           
 String getShipAddr1()
           
 String getShipAddr2()
           
 String getShipCity()
           
 String getShipName()
           
 String getShipPhone()
           
 int getShippingMethod()
           
 int getShippingMethodCount()
           
 String getShippingMethodName()
          Get the shipping method name.
 String[] getShippingMethods()
          Get shipping methods that are possible.
 String getShipState()
           
 String getShipZip()
           
 boolean isShipisbill()
           
 void setBillAddr1(String billAddr1)
           
 void setBillAddr2(String billAddr2)
           
 void setBillCity(String billCity)
           
 void setBillName(String billName)
           
 void setBillPhone(String billPhone)
           
 void setBillState(String billState)
           
 void setBillZip(String billZip)
           
 void setCardExpMonth(String cardExpMonth)
           
 void setCardExpYear(String cardExpYear)
           
 void setCardExpYears(String[] cardExpYears)
           
 void setCardholderName(String cardholderName)
           
 void setCardName(String cardName)
           
 void setCardNum(String cardNum)
           
 void setID(String orderID)
           
 void setShipAddr1(String shipAddr1)
           
 void setShipAddr2(String shipAddr2)
           
 void setShipCity(String shipCity)
           
 void setShipisbill(boolean shipisbill)
           
 void setShipName(String shipName)
           
 void setShipPhone(String shipPhone)
           
 void setShippingMethod(int shippingMethod)
           
 void setShippingMethodName(String name)
          Set the shipping method by name
 void setShipState(String shipState)
           
 void setShipZip(String shipZip)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderInfo

public OrderInfo(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,
                 int shippingMethod,
                 String orderID)
Constructor to create an OrderInfo by passing each field.


OrderInfo

public OrderInfo(Order order)
Constructor to create an OrderInfo using an Order.

Parameters:
order -
Method Detail

getShippingMethodName

public String getShippingMethodName()
Get the shipping method name.


setShippingMethodName

public void setShippingMethodName(String name)
Set the shipping method by name


getShippingMethods

public String[] getShippingMethods()
Get shipping methods that are possible.

Returns:
String[] of method names

getShippingMethodCount

public int getShippingMethodCount()

getID

public String getID()
Returns:
the orderID

setID

public void setID(String orderID)
Parameters:
orderID - the orderID to set

getBillName

public String getBillName()
Returns:
the billName

setBillName

public void setBillName(String billName)
Parameters:
billName - the billName to set

getBillAddr1

public String getBillAddr1()
Returns:
the billAddr1

setBillAddr1

public void setBillAddr1(String billAddr1)
Parameters:
billAddr1 - the billAddr1 to set

getBillAddr2

public String getBillAddr2()
Returns:
the billAddr2

setBillAddr2

public void setBillAddr2(String billAddr2)
Parameters:
billAddr2 - the billAddr2 to set

getBillCity

public String getBillCity()
Returns:
the billCity

setBillCity

public void setBillCity(String billCity)
Parameters:
billCity - the billCity to set

getBillState

public String getBillState()
Returns:
the billState

setBillState

public void setBillState(String billState)
Parameters:
billState - the billState to set

getBillZip

public String getBillZip()
Returns:
the billZip

setBillZip

public void setBillZip(String billZip)
Parameters:
billZip - the billZip to set

getBillPhone

public String getBillPhone()
Returns:
the billPhone

setBillPhone

public void setBillPhone(String billPhone)
Parameters:
billPhone - the billPhone to set

getShipName

public String getShipName()
Returns:
the shipName

setShipName

public void setShipName(String shipName)
Parameters:
shipName - the shipName to set

getShipAddr1

public String getShipAddr1()
Returns:
the shipAddr1

setShipAddr1

public void setShipAddr1(String shipAddr1)
Parameters:
shipAddr1 - the shipAddr1 to set

getShipAddr2

public String getShipAddr2()
Returns:
the shipAddr2

setShipAddr2

public void setShipAddr2(String shipAddr2)
Parameters:
shipAddr2 - the shipAddr2 to set

getShipCity

public String getShipCity()
Returns:
the shipCity

setShipCity

public void setShipCity(String shipCity)
Parameters:
shipCity - the shipCity to set

getShipState

public String getShipState()
Returns:
the shipState

setShipState

public void setShipState(String shipState)
Parameters:
shipState - the shipState to set

getShipZip

public String getShipZip()
Returns:
the shipZip

setShipZip

public void setShipZip(String shipZip)
Parameters:
shipZip - the shipZip to set

getShipPhone

public String getShipPhone()
Returns:
the shipPhone

setShipPhone

public void setShipPhone(String shipPhone)
Parameters:
shipPhone - the shipPhone to set

getShippingMethod

public int getShippingMethod()
Returns:
the shippingMethod

setShippingMethod

public void setShippingMethod(int shippingMethod)
Parameters:
shippingMethod - the shippingMethod to set

getCardholderName

public String getCardholderName()
Returns:
the cardholderName

setCardholderName

public void setCardholderName(String cardholderName)
Parameters:
cardholderName - the cardholderName to set

getCardName

public String getCardName()
Returns:
the cardName

setCardName

public void setCardName(String cardName)
Parameters:
cardName - the cardName to set

getCardNum

public String getCardNum()
Returns:
the cardNum

setCardNum

public void setCardNum(String cardNum)
Parameters:
cardNum - the cardNum to set

getCardExpMonth

public String getCardExpMonth()
Returns:
the cardExpMonth

setCardExpMonth

public void setCardExpMonth(String cardExpMonth)
Parameters:
cardExpMonth - the cardExpMonth to set

getCardExpYear

public String getCardExpYear()
Returns:
the cardExpYear

setCardExpYear

public void setCardExpYear(String cardExpYear)
Parameters:
cardExpYear - the cardExpYear to set

getCardExpYears

public String[] getCardExpYears()
Returns:
the cardExpYears

setCardExpYears

public void setCardExpYears(String[] cardExpYears)
Parameters:
cardExpYears - the cardExpYears to set

isShipisbill

public boolean isShipisbill()
Returns:
the shipisbill

setShipisbill

public void setShipisbill(boolean shipisbill)
Parameters:
shipisbill - the shipisbill to set


Copyright © 2011. All Rights Reserved.