Class BaseReceivingOrderPosition

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

@Entity public abstract class BaseReceivingOrderPosition extends org.ameba.integration.jpa.BaseEntity implements Serializable
A BaseReceivingOrderPosition.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • order

      private ReceivingOrder order
    • posNo

      @NotNull private @NotNull Integer posNo
      The position number is a unique index within a single ReceivingOrder instance.
    • state

      @NotNull private @NotNull OrderState state
      Current position state.
    • details

      private Map<String,String> details
      Arbitrary detail information on this position, might be populated with ERP information.
    • latestDueDate

      private ZonedDateTime latestDueDate
      Latest date this position can be processed.
  • Constructor Details

    • BaseReceivingOrderPosition

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

      public BaseReceivingOrderPosition(Integer posNo)
  • Method Details

    • validateOnCreation

      public abstract void validateOnCreation(javax.validation.Validator validator, Class<?> clazz)
      Subclasses may validate themselves.
      Parameters:
      validator - The Validator instance
      clazz - The validation group
    • preCreate

      public void preCreate(ServiceProvider serviceProvider)
      Subclasses have the chance for manipulation before creation.
      Parameters:
      serviceProvider - An instance that provides application services.
    • getOrder

      public ReceivingOrder getOrder()
    • setOrder

      public void setOrder(ReceivingOrder order)
    • getPosNo

      public int getPosNo()
    • getState

      public OrderState getState()
    • setState

      public void setState(OrderState state)
    • changeOrderState

      public void changeOrderState(org.springframework.context.ApplicationEventPublisher eventPublisher, OrderState orderState)
    • getDetails

      public Map<String,String> getDetails()
      Get all the details of this BaseReceivingOrderPosition.
      Returns:
      As Map
    • setDetails

      public void setDetails(Map<String,String> details)
    • addDetail

      public BaseReceivingOrderPosition addDetail(String key, String value)
      Add a new detail to the BaseReceivingOrderPosition.
      Parameters:
      key - The unique key of the detail
      value - The value as String
      Returns:
      This instance
    • getLatestDueDate

      public ZonedDateTime getLatestDueDate()
    • toString

      public String toString()
      Overrides:
      toString in class Object