org.hibernate.test.cid
Class Order

java.lang.Object
  extended by org.hibernate.test.cid.Order

public class Order
extends Object


Nested Class Summary
static class Order.Id
           
 
Constructor Summary
Order()
           
Order(Customer customer)
           
 
Method Summary
 LineItem generateLineItem(Product product, int quantity)
           
 Customer getCustomer()
           
 Order.Id getId()
           
 Collection getLineItems()
           
 Calendar getOrderDate()
           
 BigDecimal getTotal()
           
 void setCustomer(Customer customer)
           
 void setId(Order.Id id)
           
 void setLineItems(Collection lineItems)
           
 void setOrderDate(Calendar orderDate)
           
 void setTotal(BigDecimal total)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Order

public Order(Customer customer)

Order

public Order()
Method Detail

getCustomer

public Customer getCustomer()
Returns:
Returns the customer.

setCustomer

public void setCustomer(Customer customer)
Parameters:
customer - The customer to set.

getLineItems

public Collection getLineItems()
Returns:
Returns the lineItems.

setLineItems

public void setLineItems(Collection lineItems)
Parameters:
lineItems - The lineItems to set.

getOrderDate

public Calendar getOrderDate()
Returns:
Returns the orderDate.

setOrderDate

public void setOrderDate(Calendar orderDate)
Parameters:
orderDate - The orderDate to set.

getTotal

public BigDecimal getTotal()
Returns:
Returns the total.

setTotal

public void setTotal(BigDecimal total)
Parameters:
total - The total to set.

getId

public Order.Id getId()
Returns:
Returns the id.

setId

public void setId(Order.Id id)
Parameters:
id - The id to set.

generateLineItem

public LineItem generateLineItem(Product product,
                                 int quantity)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.