Class TransportUnit

java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.transport.TransportUnit
All Implemented Interfaces:
Serializable, org.ameba.integration.TypedEntity<Long>, Synchronizable

@Entity public class TransportUnit extends org.ameba.integration.jpa.ApplicationEntity implements Serializable, Synchronizable
A TransportUnit.
Author:
Heiko Scherrer
See Also:
  • Field Details

    • timeProvider

      private final transient TimeProvider timeProvider
    • foreignPKey

      private String foreignPKey
      The foreign persistent key of the Location.
    • transportUnitBK

      @NotNull private @NotNull Barcode transportUnitBK
      The business key of the TransportUnit.
    • actualLocation

      @NotNull private @NotNull Location actualLocation
      The current Location coordinate of the TransportUnit.
    • actualLocationDate

      private Date actualLocationDate
      Date when the TransportUnit has been moved to the current Location.
    • target

      private String target
      The current target Location coordinate or LocationGroup name of the TransportUnit.
    • state

      private String state
      State of the TransportUnit.
    • DEFAULT_STATE

      public static final String DEFAULT_STATE
      The default for the TU state.
      See Also:
    • transportUnitType

      @NotEmpty private @NotEmpty String transportUnitType
      The TransportUnitType of the TransportUnit.
    • length

      private Integer length
      The current length of the TransportUnit.
    • width

      private Integer width
      The current width of the TransportUnit.
    • height

      private Integer height
      The current height of the TransportUnit.
    • acknowledged

      private boolean acknowledged
      Whether this instance has been synchronized with the master data source correctly.
    • customerOrderId

      private String customerOrderId
      An optional assignment to a customer order.
    • reconciledBy

      private String reconciledBy
      The User who performed the last reconciliation on the TransportUnit.
    • reconciledAt

      @DateTimeFormat(pattern="yyyy-MM-dd\'T\'HH:mm:ssXXX") private ZonedDateTime reconciledAt
      Date of last reconciliation.
  • Constructor Details

    • TransportUnit

      protected TransportUnit()
      Dear JPA ...
    • TransportUnit

      private TransportUnit(TransportUnit.Builder builder)
  • Method Details

    • newBuilder

      public static TransportUnit.Builder newBuilder()
    • block

      @Deprecated(forRemoval=true) public void block(org.springframework.context.ApplicationEventPublisher eventPublisher)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Unused
      Block the TransportUnit from being used.
      Parameters:
      eventPublisher - An instance of the EventPublisher in order to send proper events if this happens
    • validateAndSetActualLocation

      public void validateAndSetActualLocation(org.ameba.i18n.Translator translator, Location actualLocation, int numberOfTransportUnits)
      See Also:
    • synchronizeActualLocationChange

      public void synchronizeActualLocationChange(Location actualLocation, Date actualLocationDate)
    • getForeignPKey

      public String getForeignPKey()
    • setForeignPKey

      public void setForeignPKey(String foreignPKey)
    • getTransportUnitBK

      public Barcode getTransportUnitBK()
    • setTransportUnitBK

      public void setTransportUnitBK(String transportUnitBK)
    • getActualLocation

      public Location getActualLocation()
    • setActualLocation

      @Deprecated public void setActualLocation(Location actualLocation)
      Deprecated.
      Used for the Mapper only, don't call from application code.
      Set the actualLocation.
      Parameters:
      actualLocation - The actualLocation to set
    • getActualLocationDate

      public Date getActualLocationDate()
    • setActualLocationDate

      @Deprecated private void setActualLocationDate(Date actualLocationDate)
      Deprecated.
      Used for the Mapper only, don't call from application code.
      Set the actualLocationDate.
      Parameters:
      actualLocationDate - The actualLocationDate to set
    • getTarget

      public String getTarget()
    • setTarget

      public void setTarget(String target)
    • getState

      public String getState()
    • setState

      public void setState(String state)
    • getTransportUnitType

      public String getTransportUnitType()
    • setTransportUnitType

      public void setTransportUnitType(String transportUnitType)
    • getLength

      public Integer getLength()
    • setLength

      public void setLength(Integer length)
    • getWidth

      public Integer getWidth()
    • setWidth

      public void setWidth(Integer width)
    • getHeight

      public Integer getHeight()
    • setHeight

      public void setHeight(Integer height)
    • acknowledge

      public void acknowledge()
    • isAcknowledged

      public boolean isAcknowledged()
    • getCustomerOrderId

      public String getCustomerOrderId()
    • setCustomerOrderId

      public void setCustomerOrderId(String customerOrderId)
    • getReconciledBy

      public String getReconciledBy()
    • setReconciledBy

      public void setReconciledBy(String reconciledBy)
    • getReconciledAt

      public ZonedDateTime getReconciledAt()
    • setReconciledAt

      public void setReconciledAt(ZonedDateTime reconciledAt)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      All fields.
      Overrides:
      equals in class org.ameba.integration.jpa.ApplicationEntity
    • hashCode

      public int hashCode()
      All fields.
      Overrides:
      hashCode in class org.ameba.integration.jpa.ApplicationEntity