org.books.data
Class Order

java.lang.Object
  extended by org.books.data.Order
All Implemented Interfaces:
java.io.Serializable

public class Order
extends java.lang.Object
implements java.io.Serializable

The class Order contains the data of an order.

Version:
1.0
Author:
Stephan Fischli
See Also:
Serialized Form

Nested Class Summary
static class Order.Status
          Enumeration
 
Constructor Summary
Order()
           
 
Method Summary
 Address getAddress()
          Gets the address.
 java.lang.Double getAmount()
          Gets the amount.
 CreditCard getCreditCard()
          Gets the creditCard.
 java.util.Date getDate()
          Gets the date.
 java.util.List<LineItem> getItems()
          Gets the items.
 java.lang.Integer getNumber()
          Gets the number.
 long getOrderId()
          Gets the order id.
 Order.Status getStatus()
          Gets the status.
 void setAddress(Address address)
          Sets the address.
 void setAmount(java.lang.Double amount)
          Sets the amount.
 void setCreditCard(CreditCard creditCard)
          Sets the creditCard.
 void setDate(java.util.Date date)
          Sets the date.
 void setItems(java.util.List<LineItem> items)
          Sets the items.
 void setNumber(java.lang.Integer number)
          Sets the number.
 void setOrderId(long orderId)
          Sets the order id.
 void setStatus(Order.Status status)
          Sets the status.
 java.lang.String toString()
          Return all attributes as String
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Order

public Order()
Method Detail

toString

public java.lang.String toString()
Return all attributes as String

Overrides:
toString in class java.lang.Object
Returns:
Object as String

getOrderId

public long getOrderId()
Gets the order id.

Returns:
the order id

setOrderId

public void setOrderId(long orderId)
Sets the order id.

Parameters:
orderId - The order id to set

getAddress

public Address getAddress()
Gets the address.

Returns:
the address

setAddress

public void setAddress(Address address)
Sets the address.

Parameters:
address - The address to set

getAmount

public java.lang.Double getAmount()
Gets the amount.

Returns:
the amount

setAmount

public void setAmount(java.lang.Double amount)
Sets the amount.

Parameters:
amount - The amount to set

getCreditCard

public CreditCard getCreditCard()
Gets the creditCard.

Returns:
the creditCard

setCreditCard

public void setCreditCard(CreditCard creditCard)
Sets the creditCard.

Parameters:
creditCard - The creditCard to set

getDate

public java.util.Date getDate()
Gets the date.

Returns:
the date

setDate

public void setDate(java.util.Date date)
Sets the date.

Parameters:
date - The date to set

getItems

public java.util.List<LineItem> getItems()
Gets the items.

Returns:
the items

setItems

public void setItems(java.util.List<LineItem> items)
Sets the items.

Parameters:
items - The items to set

getNumber

public java.lang.Integer getNumber()
Gets the number.

Returns:
the number

setNumber

public void setNumber(java.lang.Integer number)
Sets the number.

Parameters:
number - The number to set

getStatus

public Order.Status getStatus()
Gets the status.

Returns:
the status

setStatus

public void setStatus(Order.Status status)
Sets the status.

Parameters:
status - The status to set


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.