Package org.openwms.wms.receiving.impl
Class ReceivingOrderPosition
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.wms.receiving.impl.BaseReceivingOrderPosition
org.openwms.wms.receiving.impl.ReceivingOrderPosition
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
,Convertable
@Entity
public class ReceivingOrderPosition
extends BaseReceivingOrderPosition
implements Convertable, Serializable
A ReceivingOrderPosition is a persisted entity class that represents an expected receipt of
Product
s in a
particular quantity.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @NotNull(groups=CreateQuantityReceipt.class) Product
The expectedProduct
to be receipt.private @NotNull(groups=CreateQuantityReceipt.class) org.openwms.core.units.api.Measurable
The quantity that is expected to be receipt.private @NotNull(groups=CreateQuantityReceipt.class) org.openwms.core.units.api.Measurable
The receipt quantity, this might be increased at arrival. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Used by the JPA provider.ReceivingOrderPosition
(Integer posNo, org.openwms.core.units.api.Measurable quantityExpected, Product product) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(BaseReceivingOrderPositionVisitor visitor) org.openwms.core.units.api.Measurable
addQuantityReceived
(org.openwms.core.units.api.Measurable quantityReceived) private Product
getProduct
(ServiceProvider serviceProvider, String sku) org.openwms.core.units.api.Measurable
org.openwms.core.units.api.Measurable
boolean
void
preCreate
(ServiceProvider serviceProvider) Subclasses have the chance for manipulation before creation.void
setProduct
(Product product) void
setQuantityExpected
(org.openwms.core.units.api.Measurable quantityExpected) void
setQuantityReceived
(org.openwms.core.units.api.Measurable quantityReceived) void
setState
(OrderState state) If the state is set toCOMPLETED
thequantityReceived
is set toquantityExpected
.void
validateOnCreation
(javax.validation.Validator validator, Class<?> clazz) Subclasses may validate themselves.Methods inherited from class org.openwms.wms.receiving.impl.BaseReceivingOrderPosition
addDetail, changeOrderState, getDetails, getLatestDueDate, getOrder, getPosNo, getState, setDetails, setOrder, toString
Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
quantityExpected
@NotNull(groups=CreateQuantityReceipt.class) private @NotNull(groups=CreateQuantityReceipt.class) org.openwms.core.units.api.Measurable quantityExpectedThe quantity that is expected to be receipt. -
quantityReceived
@NotNull(groups=CreateQuantityReceipt.class) private @NotNull(groups=CreateQuantityReceipt.class) org.openwms.core.units.api.Measurable quantityReceivedThe receipt quantity, this might be increased at arrival. -
product
@NotNull(groups=CreateQuantityReceipt.class) private @NotNull(groups=CreateQuantityReceipt.class) Product productThe expectedProduct
to be receipt.
-
-
Constructor Details
-
ReceivingOrderPosition
protected ReceivingOrderPosition()Used by the JPA provider. -
ReceivingOrderPosition
-
-
Method Details
-
validateOnCreation
Description copied from class:BaseReceivingOrderPosition
Subclasses may validate themselves.- Specified by:
validateOnCreation
in classBaseReceivingOrderPosition
- Parameters:
validator
- The Validator instanceclazz
- The validation group
-
preCreate
Description copied from class:BaseReceivingOrderPosition
Subclasses have the chance for manipulation before creation.- Overrides:
preCreate
in classBaseReceivingOrderPosition
- Parameters:
serviceProvider
- An instance that provides application services.
-
getProduct
-
setState
If the state is set toCOMPLETED
thequantityReceived
is set toquantityExpected
.- Overrides:
setState
in classBaseReceivingOrderPosition
-
getQuantityExpected
public org.openwms.core.units.api.Measurable getQuantityExpected() -
setQuantityExpected
public void setQuantityExpected(org.openwms.core.units.api.Measurable quantityExpected) -
getQuantityReceived
public org.openwms.core.units.api.Measurable getQuantityReceived() -
addQuantityReceived
public org.openwms.core.units.api.Measurable addQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived) -
setQuantityReceived
public void setQuantityReceived(org.openwms.core.units.api.Measurable quantityReceived) -
getProduct
-
hasProduct
public boolean hasProduct() -
setProduct
-
accept
- Specified by:
accept
in interfaceConvertable
-