All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orderprocessing.Order

java.lang.Object
   |
   +----orderprocessing.Order

public class Order
extends java.lang.Object
implements java.io.Serializable
This class represents a single order from a single customer. Note that this class implements the Immutable Object design pattern as it has no mutators for any of its instance variables.


Constructor Index

 o Order(Customer, Vector, Date)
Create an Order for a particular customer and a sequence of items ordered

Method Index

 o display()
 o key()
Return the order number
 o toString()
 o what()
 o when()
 o who()

Constructors

 o Order
 public Order(orderprocessing.Customer who,
              java.util.Vector what,
              java.util.Date when)
Create an Order for a particular customer and a sequence of items ordered

Parameters:
who - The customer ordering these items
what - A vector of OrderItems representing the items ordered
when - The date that this order was placed

Methods

 o who
 public orderprocessing.Customer who()
 o what
 public java.util.Enumeration what()
 o when
 public java.util.Date when()
 o key
 public long key()
Return the order number

 o display
 public void display()
 o toString
 public java.lang.String toString()
Overrides:
toString in class java.lang.Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index