Package start

Class Product

    • Constructor Summary

      Constructors 
      Constructor Description
      Product​(java.lang.String name, java.lang.String manufacturer, ItemType type, int id, Employee employee)
      This is used as the Product Use for the overall product that would be Identified.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Employee getEmployee()
      Accessor to get the Employee Object to the Item.
      int getId()
      Accessor for the ID type.
      ItemType getItemType()
      Accessor to get the Item Type of the Item.
      java.lang.String getManufacturer()
      Accessor to get the Manufacturer Name of the Item.
      java.lang.String getName()
      Accessor to get the Name of the Item.
      java.lang.String getType()
      Get the Item Type Name, for the Product Table.
      void setEmployee​(Employee employee)
      Mutator to set the Employee actor to the Item.
      void setItemType​(ItemType itemType)
      Mutator to set the Item Type of the Item.
      void setManufacturer​(java.lang.String manufacturer)
      Mutator to set the Manufacturer Name of the Item.
      void setName​(java.lang.String name)
      Mutator to set the Name of the Item.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Product

        public Product​(java.lang.String name,
                       java.lang.String manufacturer,
                       ItemType type,
                       int id,
                       Employee employee)
        This is used as the Product Use for the overall product that would be Identified. Abstract Product Constructor for Item Interface.
        Parameters:
        name - Name of device.
        manufacturer - manufacturer of device.
        type - item type of device.
        id - Identification Number of the Item when in list of Products.
        employee - Employee Who Authorized the Product.
    • Method Detail

      • getType

        public java.lang.String getType()
        Get the Item Type Name, for the Product Table.
        Returns:
        returns the Type-Name.
      • getItemType

        public ItemType getItemType()
        Description copied from interface: Item
        Accessor to get the Item Type of the Item.
        Specified by:
        getItemType in interface Item
        Returns:
        The Item Type of the Item.
      • setItemType

        public void setItemType​(ItemType itemType)
        Description copied from interface: Item
        Mutator to set the Item Type of the Item.
        Specified by:
        setItemType in interface Item
        Parameters:
        itemType - Item Type object to declare the object as.
      • getId

        public int getId()
        Description copied from interface: Item
        Accessor for the ID type.
        Specified by:
        getId in interface Item
        Returns:
        The ID of the Item.
      • setManufacturer

        public void setManufacturer​(java.lang.String manufacturer)
        Description copied from interface: Item
        Mutator to set the Manufacturer Name of the Item.
        Specified by:
        setManufacturer in interface Item
        Parameters:
        manufacturer - String to set the Item Manufacture name to.
      • getManufacturer

        public java.lang.String getManufacturer()
        Description copied from interface: Item
        Accessor to get the Manufacturer Name of the Item.
        Specified by:
        getManufacturer in interface Item
        Returns:
        The Manufacturer Name of the Item.
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: Item
        Mutator to set the Name of the Item.
        Specified by:
        setName in interface Item
        Parameters:
        name - String to set the Item name to.
      • getName

        public java.lang.String getName()
        Description copied from interface: Item
        Accessor to get the Name of the Item.
        Specified by:
        getName in interface Item
        Returns:
        The Name of the Item.
      • getEmployee

        public Employee getEmployee()
        Description copied from interface: Item
        Accessor to get the Employee Object to the Item.
        Specified by:
        getEmployee in interface Item
        Returns:
        The Employee Object of the Item.
      • setEmployee

        public void setEmployee​(Employee employee)
        Description copied from interface: Item
        Mutator to set the Employee actor to the Item.
        Specified by:
        setEmployee in interface Item
        Parameters:
        employee - The Employee object that authorized the Item.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object