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
FieldsModifier and TypeFieldDescriptionprivate final org.springframework.context.ApplicationContextprivate static final org.slf4j.Loggerprivate final StateManager -
Constructor Summary
ConstructorsConstructorDescriptionChangeState(org.springframework.context.ApplicationContext ctx, StateManager stateManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidupdate(TransportOrder saved, TransportOrder toUpdate) Validate and change the requested values of thesavedinstance.
-
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 thesavedinstance.- Specified by:
updatein interfaceUpdateFunction- Parameters:
saved- The currently persisted TransportOrdertoUpdate- The TransportOrder holding the new values to save
-