Package org.openwms.wms.transport
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:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
Whether this instance has been synchronized with the master data source correctly.private @NotNull Location
The currentLocation
coordinate of theTransportUnit
.private Date
Date when theTransportUnit
has been moved to the currentLocation
.private String
An optional assignment to a customer order.static final String
The default for the TU state.private String
The foreign persistent key of theLocation
.private Integer
The current height of theTransportUnit
.private Integer
The current length of theTransportUnit
.private ZonedDateTime
Date of last reconciliation.private String
TheUser
who performed the last reconciliation on theTransportUnit
.private String
State of theTransportUnit
.private String
The current targetLocation
coordinate orLocationGroup
name of theTransportUnit
.private final TimeProvider
private @NotNull Barcode
The business key of theTransportUnit
.private @NotEmpty String
TheTransportUnitType
of theTransportUnit
.private Integer
The current width of theTransportUnit
.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Dear JPA ...private
TransportUnit
(TransportUnit.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
block
(org.springframework.context.ApplicationEventPublisher eventPublisher) Deprecated, for removal: This API element is subject to removal in a future version.Unusedboolean
All fields.getState()
getWidth()
int
hashCode()
All fields.boolean
static TransportUnit.Builder
void
setActualLocation
(Location actualLocation) Deprecated.Used for the Mapper only, don't call from application code.private void
setActualLocationDate
(Date actualLocationDate) Deprecated.Used for the Mapper only, don't call from application code.void
setCustomerOrderId
(String customerOrderId) void
setForeignPKey
(String foreignPKey) void
void
void
setReconciledAt
(ZonedDateTime reconciledAt) void
setReconciledBy
(String reconciledBy) void
void
void
setTransportUnitBK
(String transportUnitBK) void
setTransportUnitType
(String transportUnitType) void
void
synchronizeActualLocationChange
(Location actualLocation, Date actualLocationDate) toString()
void
validateAndSetActualLocation
(org.ameba.i18n.Translator translator, Location actualLocation, int numberOfTransportUnits) Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKey
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
timeProvider
-
foreignPKey
The foreign persistent key of theLocation
. -
transportUnitBK
The business key of theTransportUnit
. -
actualLocation
The currentLocation
coordinate of theTransportUnit
. -
actualLocationDate
Date when theTransportUnit
has been moved to the currentLocation
. -
target
The current targetLocation
coordinate orLocationGroup
name of theTransportUnit
. -
state
State of theTransportUnit
. -
DEFAULT_STATE
The default for the TU state.- See Also:
-
transportUnitType
TheTransportUnitType
of theTransportUnit
. -
length
The current length of theTransportUnit
. -
width
The current width of theTransportUnit
. -
height
The current height of theTransportUnit
. -
acknowledged
private boolean acknowledgedWhether this instance has been synchronized with the master data source correctly. -
customerOrderId
An optional assignment to a customer order. -
reconciledBy
TheUser
who performed the last reconciliation on theTransportUnit
. -
reconciledAt
Date of last reconciliation.
-
-
Constructor Details
-
TransportUnit
protected TransportUnit()Dear JPA ... -
TransportUnit
-
-
Method Details
-
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.UnusedBlock 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) -
synchronizeActualLocationChange
-
getForeignPKey
-
setForeignPKey
-
getTransportUnitBK
-
setTransportUnitBK
-
getActualLocation
-
setActualLocation
Deprecated.Used for the Mapper only, don't call from application code.Set the actualLocation.- Parameters:
actualLocation
- The actualLocation to set
-
getActualLocationDate
-
setActualLocationDate
Deprecated.Used for the Mapper only, don't call from application code.Set the actualLocationDate.- Parameters:
actualLocationDate
- The actualLocationDate to set
-
getTarget
-
setTarget
-
getState
-
setState
-
getTransportUnitType
-
setTransportUnitType
-
getLength
-
setLength
-
getWidth
-
setWidth
-
getHeight
-
setHeight
-
acknowledge
public void acknowledge() -
isAcknowledged
public boolean isAcknowledged() -
getCustomerOrderId
-
setCustomerOrderId
-
getReconciledBy
-
setReconciledBy
-
getReconciledAt
-
setReconciledAt
-
toString
-
equals
All fields.- Overrides:
equals
in classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields.- Overrides:
hashCode
in classorg.ameba.integration.jpa.ApplicationEntity
-