java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.materials.bl.material.BOMaterial
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, overit.geocall.timezone.model.TimeZoned

@EntityRef(MaterialEntity.class) public class BOMaterial extends DynO
Business object representing a material.
Since:
17.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOMaterial

      public BOMaterial()
  • Method Details

    • getId

      public Long getId()
      Returns the material id.
      Returns:
      the the material id
    • setId

      public void setId(Long id)
      Sets the material id.
      Parameters:
      id - the material id
    • getCode

      public String getCode()
      Returns the material code.
      Returns:
      the material code
    • setCode

      public void setCode(String code)
      Sets the material code.
      Parameters:
      code - the material code
    • getAlternativeCode

      public String getAlternativeCode()
      Returns the material alternative code.
      Returns:
      the material alternative code
    • setAlternativeCode

      public void setAlternativeCode(String alternativeCode)
      Sets the material alternative code.
      Parameters:
      alternativeCode - the material alternative code
    • getDescription

      public LocalizedString getDescription()
      Returns the material description.
      Returns:
      the material description
    • setDescription

      public void setDescription(LocalizedString description)
      Sets the material description.
      Parameters:
      description - the material description
    • getExternalStatus

      public String getExternalStatus()
      Returns the material external status.
      Returns:
      the material external status
    • setExternalStatus

      public void setExternalStatus(String externalStatus)
      Sets the material external status.
      Parameters:
      externalStatus - the material external status
    • getExtendedDescription

      public LocalizedString getExtendedDescription()
      Returns the material extended description.
      Returns:
      the material extended description
    • setExtendedDescription

      public void setExtendedDescription(LocalizedString extendedDescription)
      Sets the material extended description.
      Parameters:
      extendedDescription - the material extended description
    • getValidityBegin

      public Date getValidityBegin()
      Returns the material validity begin.
      Returns:
      the material validity begin
    • setValidityBegin

      public void setValidityBegin(Date validityBegin)
      Sets the material validity begin.
      Parameters:
      validityBegin - the material validity begin
    • getValidityEnd

      public Date getValidityEnd()
      Returns the material validity end.
      Returns:
      the material validity end
    • setValidityEnd

      public void setValidityEnd(Date validityEnd)
      Sets the material validity end.
      Parameters:
      validityEnd - the material validity end
    • getType

      public Long getType()
      Returns the material type id.
      Returns:
      the material type id
      See Also:
    • setType

      public void setType(Long type)
      Sets the material type id.
      Parameters:
      type - the material type id
      See Also:
    • getManagementType

      public Long getManagementType()
      Returns the material management type id.
      Returns:
      the material management type id
      See Also:
    • setManagementType

      public void setManagementType(Long managementType)
      Sets the material management type id.
      Parameters:
      managementType - the material management type id
      See Also:
    • getMeasureUnit

      public Long getMeasureUnit()
      Returns the material measure unit id.
      Returns:
      the measure unit id
    • setMeasureUnit

      public void setMeasureUnit(Long measureUnit)
      Sets the material measure unit id.
      Parameters:
      measureUnit - the measure unit id
    • getMaterialClass

      public Long getMaterialClass()
      Returns the material class id.
      Returns:
      the material class id
      See Also:
    • setMaterialClass

      public void setMaterialClass(Long materialClass)
      Sets the material class id.
      Parameters:
      materialClass - the material class id
      See Also:
    • getBrand

      public Long getBrand()
      Returns the material brand id.
      Returns:
      the brand id
    • setBrand

      public void setBrand(Long brand)
      Sets the material brand id.
      Parameters:
      brand - the brand id
    • getItemType

      public Long getItemType()
      Returns the material item type id.
      Returns:
      the item type id
    • setItemType

      public void setItemType(Long itemType)
      Sets the material item type id.
      Parameters:
      itemType - the item type id
    • getGoodsGroup

      public Long getGoodsGroup()
      Returns the material goods group id.
      Returns:
      the goods group id
      See Also:
    • setGoodsGroup

      public void setGoodsGroup(Long goodsGroup)
      Sets the material goods group id.
      Parameters:
      goodsGroup - the goods group id
      See Also:
    • getExternalSystem

      public Long getExternalSystem()
      Returns the material external system id.
      Returns:
      the external system id
    • setExternalSystem

      public void setExternalSystem(Long externalSystem)
      Sets the material external system id.
      Parameters:
      externalSystem - the external system id
    • getNote

      public LocalizedString getNote()
      Returns the material note.
      Returns:
      the material note
    • setNote

      public void setNote(LocalizedString note)
      Sets the material note.
      Parameters:
      note - the material note
    • isActive

      public Boolean isActive()
      Checks if the material is active.
      Returns:
      true if is the material is active, false otherwise
    • setActive

      public void setActive(Boolean active)
      Sets the material to active.
      Parameters:
      active - true if the material must be active, false otherwise
    • isGeneric

      public Boolean isGeneric()
      Checks if the material is generic.
      Returns:
      true if is the material is generic, false otherwise
    • setGeneric

      public void setGeneric(Boolean generic)
      Sets the material to generic.
      Parameters:
      generic - true if the material must be generic, false otherwise
    • isManagedInStock

      public Boolean isManagedInStock()
      Checks if the material is managed in stock.
      Returns:
      true if is the material is managed in stock, false otherwise
    • setManagedInStock

      public void setManagedInStock(Boolean managedInStock)
      Sets the material to managed in stock.
      Parameters:
      managedInStock - true if the material must be managed in stock, false otherwise