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 booleanWhether this instance has been synchronized with the master data source correctly.private @NotNull LocationThe currentLocationcoordinate of theTransportUnit.private DateDate when theTransportUnithas been moved to the currentLocation.private StringAn optional assignment to a customer order.static final StringThe default for the TU state.private StringThe foreign persistent key of theLocation.private IntegerThe current height of theTransportUnit.private IntegerThe current length of theTransportUnit.private ZonedDateTimeDate of last reconciliation.private StringTheUserwho performed the last reconciliation on theTransportUnit.private StringState of theTransportUnit.private StringThe current targetLocationcoordinate orLocationGroupname of theTransportUnit.private final TimeProviderprivate @NotNull BarcodeThe business key of theTransportUnit.private @NotEmpty StringTheTransportUnitTypeof theTransportUnit.private IntegerThe current width of theTransportUnit.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDear JPA ...privateTransportUnit(TransportUnit.Builder builder) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidblock(org.springframework.context.ApplicationEventPublisher eventPublisher) Deprecated, for removal: This API element is subject to removal in a future version.UnusedbooleanAll fields.getState()getWidth()inthashCode()All fields.booleanstatic TransportUnit.BuildervoidsetActualLocation(Location actualLocation) Deprecated.Used for the Mapper only, don't call from application code.private voidsetActualLocationDate(Date actualLocationDate) Deprecated.Used for the Mapper only, don't call from application code.voidsetCustomerOrderId(String customerOrderId) voidsetForeignPKey(String foreignPKey) voidvoidvoidsetReconciledAt(ZonedDateTime reconciledAt) voidsetReconciledBy(String reconciledBy) voidvoidvoidsetTransportUnitBK(String transportUnitBK) voidsetTransportUnitType(String transportUnitType) voidvoidsynchronizeActualLocationChange(Location actualLocation, Date actualLocationDate) toString()voidvalidateAndSetActualLocation(org.ameba.i18n.Translator translator, Location actualLocation, int numberOfTransportUnits) Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods 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 currentLocationcoordinate of theTransportUnit. -
actualLocationDate
Date when theTransportUnithas been moved to the currentLocation. -
target
The current targetLocationcoordinate orLocationGroupname of theTransportUnit. -
state
State of theTransportUnit. -
DEFAULT_STATE
The default for the TU state.- See Also:
-
transportUnitType
TheTransportUnitTypeof 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
TheUserwho 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:
equalsin classorg.ameba.integration.jpa.ApplicationEntity
-
hashCode
public int hashCode()All fields.- Overrides:
hashCodein classorg.ameba.integration.jpa.ApplicationEntity
-