Class ReceivingOrderPosition

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.wms.receiving.impl.BaseReceivingOrderPosition
org.openwms.wms.receiving.impl.ReceivingOrderPosition
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>, Convertable

@Entity public class ReceivingOrderPosition extends BaseReceivingOrderPosition implements Convertable, Serializable
A ReceivingOrderPosition is a persisted entity class that represents an expected receipt of Products in a particular quantity.
Author:
Heiko Scherrer
See Also:
  • Field Details

  • Constructor Details

    • ReceivingOrderPosition

      protected ReceivingOrderPosition()
      Used by the JPA provider.
    • ReceivingOrderPosition

      public ReceivingOrderPosition(Integer posNo, org.openwms.core.units.api.Measurable quantityExpected, Product product)
  • Method Details

    • validateOnCreation

      public void validateOnCreation(javax.validation.Validator validator, Class<?> clazz)
      Description copied from class: BaseReceivingOrderPosition
      Subclasses may validate themselves.
      Specified by:
      validateOnCreation in class BaseReceivingOrderPosition
      Parameters:
      validator - The Validator instance
      clazz - The validation group
    • preCreate

      public void preCreate(ServiceProvider serviceProvider)
      Description copied from class: BaseReceivingOrderPosition
      Subclasses have the chance for manipulation before creation.
      Overrides:
      preCreate in class BaseReceivingOrderPosition
      Parameters:
      serviceProvider - An instance that provides application services.
    • getProduct

      private Product getProduct(ServiceProvider serviceProvider, String sku)
    • setState

      public void setState(OrderState state)
      If the state is set to COMPLETED the quantityReceived is set to quantityExpected.
      Overrides:
      setState in class BaseReceivingOrderPosition
    • getQuantityExpected

      public org.openwms.core.units.api.Measurable getQuantityExpected()
    • setQuantityExpected

      public void setQuantityExpected(org.openwms.core.units.api.Measurable quantityExpected)
    • getQuantityReceived

      public org.openwms.core.units.api.Measurable getQuantityReceived()
    • addQuantityReceived

      public org.openwms.core.units.api.Measurable addQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived)
    • setQuantityReceived

      public void setQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived)
    • getProduct

      public Product getProduct()
    • hasProduct

      public boolean hasProduct()
    • setProduct

      public void setProduct(Product product)
    • accept

      public void accept(BaseReceivingOrderPositionVisitor visitor)
      Specified by:
      accept in interface Convertable