Class BOWarehouseMaterialAvailability

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

public class BOWarehouseMaterialAvailability extends DynO
Business object representing a warehouse material availability.
Since:
14.0
See Also:
GCApi:
bo
  • Constructor Details

    • BOWarehouseMaterialAvailability

      public BOWarehouseMaterialAvailability()
  • Method Details

    • getMaterial

      public Long getMaterial()
      Returns the material id.
      Returns:
      the material id
      See Also:
    • setMaterial

      public void setMaterial(Long material)
      Sets the material id.
      Parameters:
      material - the material id
      See Also:
    • getStock

      public Long getStock()
      Returns the stock id.
      Returns:
      the stock id
      See Also:
    • setStock

      public void setStock(Long stock)
      Sets the stock id.
      Parameters:
      stock - the stock id
      See Also:
    • getWarehouse

      public Long getWarehouse()
      Returns the warehouse id.
      Returns:
      the warehouse id
      See Also:
    • setWarehouse

      public void setWarehouse(Long warehouse)
      Sets the warehouse id.
      Parameters:
      warehouse - the warehouse id
      See Also:
    • getWarehouseType

      public Long getWarehouseType()
      Returns the warehouse type id.
      Returns:
      the warehouse type id
      See Also:
    • setWarehouseType

      public void setWarehouseType(Long warehouseType)
      Sets the warehouse type id.
      Parameters:
      warehouseType - the warehouse type id
      See Also:
    • isPreferred

      public boolean isPreferred()
      Checks if the warehouse is the preferred one.
      Returns:
      true if is the warehouse is preferred one, false otherwise
    • setPreferred

      public void setPreferred(boolean preferred)
      Sets the warehouse to preferred.
      Parameters:
      preferred - true if the warehouse must be the preferred one, false otherwise
    • getResource

      public Long getResource()
      Returns the resource id.
      Returns:
      the resource id
      See Also:
    • setResource

      public void setResource(Long resource)
      Sets the resource id.
      Parameters:
      resource - the resource id
      See Also:
    • getDistance

      public Double getDistance()
      Returns the warehouse material availability distance.
      Returns:
      the warehouse material availability distance
    • setDistance

      public void setDistance(Double distance)
      Sets the warehouse material availability distance.
      Parameters:
      distance - the warehouse material availability distance
    • getQuantity

      public Double getQuantity()
      Returns the material quantity.
      Returns:
      the material quantity
    • setQuantity

      public void setQuantity(Double quantity)
      Sets the material quantity.
      Parameters:
      quantity - the material quantity
    • getMeasureUnit

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

      public void setMeasureUnit(Long measureUnit)
      Sets the measure unit id.
      Parameters:
      measureUnit - the measure unit id
      See Also:
    • getLongitude

      public Double getLongitude()
      Returns the warehouse material availability longitude.
      Returns:
      the warehouse material availability longitude
    • setLongitude

      public void setLongitude(Double longitude)
      Sets the warehouse material availability longitude.
      Parameters:
      longitude - the warehouse material availability longitude
    • getLatitude

      public Double getLatitude()
      Returns the warehouse material availability latitude.
      Returns:
      the warehouse material availability latitude
    • setLatitude

      public void setLatitude(Double latitude)
      Sets the warehouse material availability latitude.
      Parameters:
      latitude - the warehouse material availability latitude
    • getDetectionDate

      public Date getDetectionDate()
      Returns the warehouse material availability detection date.
      Returns:
      the warehouse material availability detection date
    • setDetectionDate

      public void setDetectionDate(Date detectionDate)
      Sets the warehouse material availability detection date.
      Parameters:
      detectionDate - the warehouse material availability detection date
    • getCodeWarehouse

      public String getCodeWarehouse()
      Returns the code of the warehouse.
      Returns:
      the warehouse code
    • setCodeWarehouse

      public void setCodeWarehouse(String codeWarehouse)
      Sets the warehouse code.
      Parameters:
      codeWarehouse - the warehouse code
    • getEstimatedTimeOfArrival

      public Date getEstimatedTimeOfArrival()
      Returns the estimated time of arrival.
      Returns:
      the estimated time of arrival
    • setEstimatedTimeOfArrival

      public void setEstimatedTimeOfArrival(Date estimatedTimeOfArrival)
      Sets the estimated time of arrival.
      Parameters:
      estimatedTimeOfArrival - the estimated time of arrival