FileDocCategorySizeDatePackage
Item.javaAPI DocExample2421Fri Dec 26 22:16:22 GMT 2003org.springframework.samples.jpetstore.domain

Item

public class Item extends Object implements Serializable

Fields Summary
private String
itemId
private String
productId
private double
listPrice
private double
unitCost
private int
supplierId
private String
status
private String
attribute1
private String
attribute2
private String
attribute3
private String
attribute4
private String
attribute5
private Product
product
private int
quantity
Constructors Summary
Methods Summary
public java.lang.StringgetAttribute1()

 return attribute1; 
public java.lang.StringgetAttribute2()

 return attribute2; 
public java.lang.StringgetAttribute3()

 return attribute3; 
public java.lang.StringgetAttribute4()

 return attribute4; 
public java.lang.StringgetAttribute5()

 return attribute5; 
public java.lang.StringgetItemId()

 return itemId; 
public doublegetListPrice()

 return listPrice; 
public ProductgetProduct()

 return product; 
public java.lang.StringgetProductId()

 return productId; 
public intgetQuantity()

 return quantity; 
public java.lang.StringgetStatus()

 return status; 
public intgetSupplierId()

 return supplierId; 
public doublegetUnitCost()

 return unitCost; 
public voidsetAttribute1(java.lang.String attribute1)

 this.attribute1 = attribute1; 
public voidsetAttribute2(java.lang.String attribute2)

 this.attribute2 = attribute2; 
public voidsetAttribute3(java.lang.String attribute3)

 this.attribute3 = attribute3; 
public voidsetAttribute4(java.lang.String attribute4)

 this.attribute4 = attribute4; 
public voidsetAttribute5(java.lang.String attribute5)

 this.attribute5 = attribute5; 
public voidsetItemId(java.lang.String itemId)

 this.itemId = itemId.trim(); 
public voidsetListPrice(double listPrice)

 this.listPrice = listPrice; 
public voidsetProduct(Product product)

 this.product = product; 
public voidsetProductId(java.lang.String productId)

 this.productId = productId; 
public voidsetQuantity(int quantity)

 this.quantity = quantity; 
public voidsetStatus(java.lang.String status)

 this.status = status; 
public voidsetSupplierId(int supplierId)

 this.supplierId = supplierId; 
public voidsetUnitCost(double unitCost)

 this.unitCost = unitCost; 
public java.lang.StringtoString()

    return "(" + getItemId().trim() + "-" + getProductId().trim() + ")";