Package org.openwms.wms.receiving.impl
Class BaseReceivingOrderPosition
java.lang.Object
org.ameba.integration.jpa.BaseEntity
org.openwms.wms.receiving.impl.BaseReceivingOrderPosition
- All Implemented Interfaces:
Serializable
,org.ameba.integration.TypedEntity<Long>
- Direct Known Subclasses:
ReceivingOrderPosition
,ReceivingTransportUnitOrderPosition
@Entity
public abstract class BaseReceivingOrderPosition
extends org.ameba.integration.jpa.BaseEntity
implements Serializable
A BaseReceivingOrderPosition.
- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionArbitrary detail information on this position, might be populated with ERP information.private ZonedDateTime
Latest date this position can be processed.private ReceivingOrder
private @NotNull Integer
The position number is a unique index within a singleReceivingOrder
instance.private @NotNull OrderState
Current position state. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Used by the JPA provider. -
Method Summary
Modifier and TypeMethodDescriptionAdd a new detail to theBaseReceivingOrderPosition
.void
changeOrderState
(org.springframework.context.ApplicationEventPublisher eventPublisher, OrderState orderState) Get all the details of thisBaseReceivingOrderPosition
.getOrder()
int
getPosNo()
getState()
void
preCreate
(ServiceProvider serviceProvider) Subclasses have the chance for manipulation before creation.void
setDetails
(Map<String, String> details) void
setOrder
(ReceivingOrder order) void
setState
(OrderState state) toString()
abstract void
validateOnCreation
(javax.validation.Validator validator, Class<?> clazz) Subclasses may validate themselves.Methods inherited from class org.ameba.integration.jpa.BaseEntity
getCreatedBy, getCreateDt, getLastModifiedBy, getLastModifiedDt, getOl, getPk, isNew, setOl
-
Field Details
-
order
-
posNo
The position number is a unique index within a singleReceivingOrder
instance. -
state
Current position state. -
details
Arbitrary detail information on this position, might be populated with ERP information. -
latestDueDate
Latest date this position can be processed.
-
-
Constructor Details
-
BaseReceivingOrderPosition
protected BaseReceivingOrderPosition()Used by the JPA provider. -
BaseReceivingOrderPosition
-
-
Method Details
-
validateOnCreation
Subclasses may validate themselves.- Parameters:
validator
- The Validator instanceclazz
- The validation group
-
preCreate
Subclasses have the chance for manipulation before creation.- Parameters:
serviceProvider
- An instance that provides application services.
-
getOrder
-
setOrder
-
getPosNo
public int getPosNo() -
getState
-
setState
-
changeOrderState
public void changeOrderState(org.springframework.context.ApplicationEventPublisher eventPublisher, OrderState orderState) -
getDetails
Get all the details of thisBaseReceivingOrderPosition
.- Returns:
- As Map
-
setDetails
-
addDetail
Add a new detail to theBaseReceivingOrderPosition
.- Parameters:
key
- The unique key of the detailvalue
- The value as String- Returns:
- This instance
-
getLatestDueDate
-
toString
-