Package org.openwms.tms.impl.state
Class ChangeState
java.lang.Object
org.openwms.tms.impl.state.ChangeState
- All Implemented Interfaces:
UpdateFunction
@Transactional(propagation=MANDATORY)
@Component
class ChangeState
extends Object
implements UpdateFunction
A ChangeState is an
UpdateFunction
to change the state of an TransportOrder
.- Author:
- Heiko Scherrer
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContext
private static final org.slf4j.Logger
private final StateManager
-
Constructor Summary
ConstructorDescriptionChangeState
(org.springframework.context.ApplicationContext ctx, StateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
update
(TransportOrder saved, TransportOrder toUpdate) Validate and change the requested values of thesaved
instance.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ctx
private final org.springframework.context.ApplicationContext ctx -
stateManager
-
-
Constructor Details
-
ChangeState
ChangeState(org.springframework.context.ApplicationContext ctx, StateManager stateManager)
-
-
Method Details
-
update
Validate and change the requested values of thesaved
instance.- Specified by:
update
in interfaceUpdateFunction
- Parameters:
saved
- The currently persisted TransportOrdertoUpdate
- The TransportOrder holding the new values to save
-