Package start
Class ProductionRecord
- java.lang.Object
-
- start.ProductionRecord
-
public class ProductionRecord extends java.lang.ObjectProduction Record of the objects when they are produced from production.- Author:
- Brandon Heck
-
-
Constructor Summary
Constructors Constructor Description ProductionRecord(int productionNumber, int productionID, java.lang.String serialNumber, java.util.Date dateProduced)Creates New Production from Database records.ProductionRecord(Product item, int typeCount)Constructor for Production Record (When creating a new record).
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetProdDate()Get the Date of Production.intgetProductID()ID of the product to be recorded.java.lang.StringgetProductionName()Name of production Item that was produced.intgetProductionNum()Get the Production Number of the Record.java.lang.StringgetSerialNum()get the unique identifier for the produced item that was recorded.voidsetProdDate(java.util.Date dateProduced)Set the date that was recorded when the product is recorded.voidsetProductID(int productionID)Set the ID of the product to be placed into the database.voidsetProductionName(java.lang.String productionName)To Set the Name of the Product.voidsetProductionNum(int productionNumber)To set the Production Record Number.voidsetSerialNum(java.lang.String serialNumber)Set the Serial number that was created when the product was produced.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ProductionRecord
public ProductionRecord(Product item, int typeCount)
Constructor for Production Record (When creating a new record).- Parameters:
item- Product Information for required information on the product to recordtypeCount- ID number of the new item to put into the serial number
-
ProductionRecord
public ProductionRecord(int productionNumber, int productionID, java.lang.String serialNumber, java.util.Date dateProduced)Creates New Production from Database records. (When Inputting from database information)- Parameters:
productionNumber- production number when item was recorded.productionID- identification number for the type of product that.serialNumber- Serial Number of Product from the database.dateProduced- Recorded record of the Date when record of product produced.
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getProductionNum
public int getProductionNum()
Get the Production Number of the Record.- Returns:
- Production Record Number
-
setProductionNum
public void setProductionNum(int productionNumber)
To set the Production Record Number.- Parameters:
productionNumber- Production Record Number
-
getProdDate
public java.util.Date getProdDate()
Get the Date of Production.- Returns:
- Date Object of the date the product ws produced.
-
setProdDate
public void setProdDate(java.util.Date dateProduced)
Set the date that was recorded when the product is recorded.- Parameters:
dateProduced- Date that the product was created
-
getSerialNum
public java.lang.String getSerialNum()
get the unique identifier for the produced item that was recorded.- Returns:
- Recorded Product unique identifier
-
setSerialNum
public void setSerialNum(java.lang.String serialNumber)
Set the Serial number that was created when the product was produced.- Parameters:
serialNumber- The Serial number of the product that was produced
-
getProductID
public int getProductID()
ID of the product to be recorded.- Returns:
- The Integer ID of the product recorded
-
setProductID
public void setProductID(int productionID)
Set the ID of the product to be placed into the database.- Parameters:
productionID- Integer ID of the product recorded
-
getProductionName
public java.lang.String getProductionName()
Name of production Item that was produced.- Returns:
- Name of production Item.
-
setProductionName
public void setProductionName(java.lang.String productionName)
To Set the Name of the Product.- Parameters:
productionName- Production Item Name.
-
-