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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate booleanWhether this instance has been synchronized with the master data source correctly.private @NotNull LocationThe currentLocationcoordinate of theTransportUnit.private LocalDateTimeDate 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.ApplicationEntityC_ID
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedDear JPA ...privateTransportUnit(TransportUnit.Builder builder) 
- 
Method SummaryModifier 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(LocalDateTime actualLocationDate) Deprecated.Used for the Mapper only, don't call from application code.voidsetCustomerOrderId(String customerOrderId) voidsetForeignPKey(String foreignPKey) voidvoidvoidsetOl(long ol) voidsetReconciledAt(ZonedDateTime reconciledAt) voidsetReconciledBy(String reconciledBy) voidvoidvoidsetTransportUnitBK(String transportUnitBK) voidsetTransportUnitType(String transportUnitType) voidvoidsynchronizeActualLocationChange(Location actualLocation, LocalDateTime actualLocationDate) toString()voidvalidateAndSetActualLocation(org.ameba.i18n.Translator translator, Location actualLocation, int numberOfTransportUnits) Methods inherited from class org.ameba.integration.jpa.ApplicationEntitygetPersistentKey, hasPersistentKey, onEntityPersist, onPersist, setPersistentKeyMethods inherited from class org.ameba.integration.jpa.BaseEntitygetCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt
- 
Field Details- 
timeProvider
- 
foreignPKeyThe foreign persistent key of theLocation.
- 
transportUnitBKThe business key of theTransportUnit.
- 
actualLocationThe currentLocationcoordinate of theTransportUnit.
- 
actualLocationDateDate when theTransportUnithas been moved to the currentLocation.
- 
targetThe current targetLocationcoordinate orLocationGroupname of theTransportUnit.
- 
stateState of theTransportUnit.
- 
DEFAULT_STATEThe default for the TU state.- See Also:
 
- 
transportUnitTypeTheTransportUnitTypeof theTransportUnit.
- 
lengthThe current length of theTransportUnit.
- 
widthThe current width of theTransportUnit.
- 
heightThe current height of theTransportUnit.
- 
acknowledgedprivate boolean acknowledgedWhether this instance has been synchronized with the master data source correctly.
- 
customerOrderIdAn optional assignment to a customer order.
- 
reconciledByTheUserwho performed the last reconciliation on theTransportUnit.
- 
reconciledAtDate of last reconciliation.
 
- 
- 
Constructor Details- 
TransportUnitprotected 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
 
- 
validateAndSetActualLocationpublic void validateAndSetActualLocation(org.ameba.i18n.Translator translator, Location actualLocation, int numberOfTransportUnits) - See Also:
 
- 
synchronizeActualLocationChangepublic void synchronizeActualLocationChange(Location actualLocation, LocalDateTime actualLocationDate) 
- 
getForeignPKey
- 
setForeignPKey
- 
getTransportUnitBK
- 
setTransportUnitBK
- 
getActualLocation
- 
setActualLocationDeprecated.Used for the Mapper only, don't call from application code.Set the actualLocation.- Parameters:
- actualLocation- The actualLocation to set
 
- 
getActualLocationDate
- 
setActualLocationDateDeprecated.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
- 
acknowledgepublic void acknowledge()
- 
isAcknowledgedpublic boolean isAcknowledged()
- 
getCustomerOrderId
- 
setCustomerOrderId
- 
getReconciledBy
- 
setReconciledBy
- 
getReconciledAt
- 
setReconciledAt
- 
setOlpublic void setOl(long ol) - Overrides:
- setOlin class- org.ameba.integration.jpa.BaseEntity
 
- 
toString
- 
equalsAll fields.- Overrides:
- equalsin class- org.ameba.integration.jpa.ApplicationEntity
 
- 
hashCodepublic int hashCode()All fields.- Overrides:
- hashCodein class- org.ameba.integration.jpa.ApplicationEntity
 
 
-