Package start

Class ProductionRecord


  • public class ProductionRecord
    extends java.lang.Object
    Production 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.Date getProdDate()
      Get the Date of Production.
      int getProductID()
      ID of the product to be recorded.
      java.lang.String getProductionName()
      Name of production Item that was produced.
      int getProductionNum()
      Get the Production Number of the Record.
      java.lang.String getSerialNum()
      get the unique identifier for the produced item that was recorded.
      void setProdDate​(java.util.Date dateProduced)
      Set the date that was recorded when the product is recorded.
      void setProductID​(int productionID)
      Set the ID of the product to be placed into the database.
      void setProductionName​(java.lang.String productionName)
      To Set the Name of the Product.
      void setProductionNum​(int productionNumber)
      To set the Production Record Number.
      void setSerialNum​(java.lang.String serialNumber)
      Set the Serial number that was created when the product was produced.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 record
        typeCount - 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:
        toString in class java.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.