project1
Class ProductItem

java.lang.Object
  |
  +--project1.ProductId
        |
        +--project1.ProductItem
Direct Known Subclasses:
ProductItemGroup

public class ProductItem
extends project1.ProductId

ProductItem Class is used to store a unit product


Field Summary
 java.lang.String name
           
 
Constructor Summary
ProductItem()
          Constructor
ProductItem(java.lang.String code, java.lang.String assemblyPos)
          Constructor
ProductItem(java.lang.String code, java.lang.String assemblyPos, java.lang.String name)
          Constructor
ProductItem(java.lang.String code, java.lang.String assemblyPos, java.lang.String name, double amount)
          Constructor
 
Method Summary
 void changeBegValid(java.util.Date d)
          Method
 void changeEndValid(java.util.Date d)
          Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Constructor Detail

ProductItem

public ProductItem()
Constructor


ProductItem

public ProductItem(java.lang.String code,
                   java.lang.String assemblyPos)
Constructor

Parameters:
code - code of the product
assemblyPos - Assembly Position data of the product

ProductItem

public ProductItem(java.lang.String code,
                   java.lang.String assemblyPos,
                   java.lang.String name)
Constructor

Parameters:
code - code of the product
assemblyPos - Assembly Position data of the product
name - Name of the product

ProductItem

public ProductItem(java.lang.String code,
                   java.lang.String assemblyPos,
                   java.lang.String name,
                   double amount)
Constructor

Parameters:
code - code of the product
assemblyPos - Assembly Position data of the product
name - Name of the product
amount - Stock Amount of the product
Method Detail

changeBegValid

public void changeBegValid(java.util.Date d)
Method

Parameters:
d - Sets the beginning validation date of the product

changeEndValid

public void changeEndValid(java.util.Date d)
Method

Parameters:
d - Sets the ending validation date of the product