Package org.openwms.wms.shipping.impl
Class ShippingTransportUnitOrderPosition
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.ameba.integration.jpa.ApplicationEntity
org.openwms.wms.shipping.impl.AbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
org.openwms.wms.shipping.impl.ShippingTransportUnitOrderPosition
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
@Entity
public class ShippingTransportUnitOrderPosition
extends AbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
implements Serializable
A OrderPosition.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionArbitrary details of this Position.All Splits created from this Position.private @NotBlank(groups=CreateTUPosition.class) String
The business key of the requestedTransportUnit
.private @NotBlank(groups=CreateTUPosition.class) String
The name of theTransportUnitType
the requestedTransportUnit
is of.Fields inherited from class org.ameba.integration.jpa.ApplicationEntity
C_ID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Used by the JPA provider.ShippingTransportUnitOrderPosition
(@NotNull ShippingOrder order, @NotNull Integer positionNo, @NotBlank String transportUnitBK, @NotBlank String transportUnitTypeName) Create a new ShippingTransportUnitOrderPosition with the mandatory attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add one or more Splits to this Position.boolean
No splits.Get the arbitrary details of the Position.Get all created OrderPositionSplits that belong to this Position.@NotBlank(groups=CreateTUPosition.class) String
@NotBlank(groups=CreateTUPosition.class) String
int
hashCode()
No splits.boolean
Check all the existing Splits if they're all allocated.void
setDetails
(Map<String, String> details) Set arbitrary details for the Position.void
setOrderPositionSplits
(Set<ShippingTransportUnitOrderPositionSplit> orderPositionSplits) Set the OrderPositionSplits of this Position.void
setTransportUnitBK
(@NotBlank(groups=CreateTUPosition.class) String transportUnitBK) void
setTransportUnitTypeName
(@NotBlank(groups=CreateTUPosition.class) String transportUnitTypeName) Methods inherited from class org.openwms.wms.shipping.impl.AbstractShippingOrderPosition
changeOrderState, changePriority, getEarliestStartDate, getLatestDueDate, getNextAllocationDate, getNextSplitNumber, getOrder, getOrderState, getPositionNo, getPriority, getProblem, getSourceLocationGroupNames, getStartMode, getTarget, hasStartMode, isLocked, setEarliestStartDate, setLatestDueDate, setLocked, setNextAllocationDate, setOrder, setOrderState, setPersistentKey, setPositionNo, setPriority, setProblem, setSourceLocationGroupNames, setStartMode, setTarget, toString
Methods inherited from class org.ameba.integration.jpa.ApplicationEntity
getPersistentKey, hasPersistentKey, onEntityPersist, onPersist
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setCreatedBy, setCreateDt, setLastModifiedBy, setLastModifiedDt, setOl
-
Field Details
-
transportUnitBK
@NotBlank(groups=CreateTUPosition.class) private @NotBlank(groups=CreateTUPosition.class) String transportUnitBKThe business key of the requestedTransportUnit
. -
transportUnitTypeName
@NotBlank(groups=CreateTUPosition.class) private @NotBlank(groups=CreateTUPosition.class) String transportUnitTypeNameThe name of theTransportUnitType
the requestedTransportUnit
is of. -
orderPositionSplits
All Splits created from this Position. -
details
Arbitrary details of this Position.
-
-
Constructor Details
-
ShippingTransportUnitOrderPosition
protected ShippingTransportUnitOrderPosition()Used by the JPA provider. -
ShippingTransportUnitOrderPosition
@ConstructorProperties({"order","positionNo","transportUnitBK","transportUnitTypeName"}) public ShippingTransportUnitOrderPosition(@NotNull @NotNull ShippingOrder order, @NotNull @NotNull Integer positionNo, @NotBlank @NotBlank String transportUnitBK, @NotBlank @NotBlank String transportUnitTypeName) Create a new ShippingTransportUnitOrderPosition with the mandatory attributes.@Default
is for the mapper. Note that none of the arguments is checked for null, because the Mapper might need to create Entity Objects partially for partial PATCH updates.- Parameters:
order
- The OrderpositionNo
- The position numbertransportUnitBK
- The unique identifier of the requested TransportUnittransportUnitTypeName
- The name of the TransportUnitType
-
-
Method Details
-
isAllocated
public boolean isAllocated()Check all the existing Splits if they're all allocated.- Specified by:
isAllocated
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Returns:
- true If all Splits are allocated, in all cases false
-
getOrderPositionSplits
Get all created OrderPositionSplits that belong to this Position.- Specified by:
getOrderPositionSplits
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Returns:
- The splits as Set
-
setOrderPositionSplits
public void setOrderPositionSplits(Set<ShippingTransportUnitOrderPositionSplit> orderPositionSplits) Set the OrderPositionSplits of this Position.- Specified by:
setOrderPositionSplits
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Parameters:
orderPositionSplits
- The splits to set
-
addSplits
Add one or more Splits to this Position.- Specified by:
addSplits
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Parameters:
splits
- Splits to add
-
getDetails
Get the arbitrary details of the Position.- Specified by:
getDetails
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Returns:
- The details as Map
-
setDetails
Set arbitrary details for the Position.- Specified by:
setDetails
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
- Parameters:
details
- The details to set as Map
-
equals
No splits. All fields.- Overrides:
equals
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
-
hashCode
public int hashCode()No splits. All fields.- Overrides:
hashCode
in classAbstractShippingOrderPosition<ShippingTransportUnitOrderPositionSplit>
-
getTransportUnitBK
@NotBlank(groups=CreateTUPosition.class) public @NotBlank(groups=CreateTUPosition.class) String getTransportUnitBK() -
setTransportUnitBK
public void setTransportUnitBK(@NotBlank(groups=CreateTUPosition.class) @NotBlank(groups=CreateTUPosition.class) String transportUnitBK) -
getTransportUnitTypeName
@NotBlank(groups=CreateTUPosition.class) public @NotBlank(groups=CreateTUPosition.class) String getTransportUnitTypeName() -
setTransportUnitTypeName
public void setTransportUnitTypeName(@NotBlank(groups=CreateTUPosition.class) @NotBlank(groups=CreateTUPosition.class) String transportUnitTypeName)
-