FileDocCategorySizeDatePackage
Order.javaAPI DocExample3997Fri Mar 01 11:27:20 GMT 2002javajaxb.po

Order

public class Order extends Object

The Order class represents a single ordered item in a {@link PurchaseOrder}.

Fields Summary
private int
id
The ID of this order
private String
sku
The SKU of this order
private String
productName
The name of the product ordered
private String
manufacturerName
The manufacturer of the product ordered
private float
purchasePrice
The price ordered at
private Stock
stock
The {@link Stock} item for this order
Constructors Summary
public Order()

Default constructor for Quick.

 
public Order(int id, String sku)

Constructor to take in required values

param
id the order ID
param
sku the SKU of this order

        this.id = id;
        this.sku = sku;
    
Methods Summary
public intgetId()

This will return this order's ID.

return
int - the ID of this order.

        return id;
    
public java.lang.StringgetManufacturerName()

This will return this order's manufacturer.

return
String - the manufacturer name of this order.

        return manufacturerName;
    
public java.lang.StringgetProductName()

This will return this order's product name.

return
String - the product name of this order.

        return productName;
    
public floatgetPurchasePrice()

This will return this order's purchase price.

return
float - the purchase price of this order.

        return purchasePrice;
    
public java.lang.StringgetSku()

This will return this order's SKU.

return
String - the SKU of this order.

        return sku;
    
public StockgetStock()

This will return this order's {@link Stock} item.

return
Stock - the stock item for this order.

        return stock;
    
public voidsetId(int id)

This will set the ID for this order.

param
id the ID of this order.

        this.id = id;
    
public voidsetManufacturerName(java.lang.String manufacturerName)

This will set the manufacturer name for this order.

param
manufacturer the product manufacturer of this order.

        this.manufacturerName = manufacturerName;
    
public voidsetProductName(java.lang.String productName)

This will set the product name for this order.

param
productName the product name of this order.

        this.productName = productName;
    
public voidsetPurchasePrice(float purchasePrice)

This will set the purcahse price for this order.

param
purchasePrice the price of this order.

        this.purchasePrice = purchasePrice;
    
public voidsetSku(java.lang.String sku)

This will set the SKU for this order.

param
sku the SKU of this order.

        this.sku = sku;
    
public voidsetStock(Stock stock)

This will set the {@link Stock} item for this order.

param
stock the stock item of this order.

        this.stock = stock;