public class VerifyDeserializedObjectCommandContextCloseListener extends Object implements CommandContextCloseListener
CommandContextCloseListener that holds one DeserializedObject instance that is added by the SerializableType.
On the closing(CommandContext) of the CommandContext, the DeserializedObject will be verified if it is dirty. If so, it will update the right entities such that changes
will be flushed.
It's important that this happens in the closing(CommandContext), as this happens before the CommandContext.close() is called and when all the sessions are flushed (including the
DbSqlSession in the relational DB case (the data needs to be ready then).| Modifier and Type | Field and Description |
|---|---|
protected DeserializedObject |
deserializedObject |
| Constructor and Description |
|---|
VerifyDeserializedObjectCommandContextCloseListener(DeserializedObject deserializedObject) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSessionsFlush(CommandContext commandContext) |
void |
closed(CommandContext commandContext) |
void |
closeFailure(CommandContext commandContext) |
void |
closing(CommandContext commandContext) |
protected DeserializedObject deserializedObject
public VerifyDeserializedObjectCommandContextCloseListener(DeserializedObject deserializedObject)
public void closing(CommandContext commandContext)
closing in interface CommandContextCloseListenerpublic void closed(CommandContext commandContext)
closed in interface CommandContextCloseListenerpublic void afterSessionsFlush(CommandContext commandContext)
afterSessionsFlush in interface CommandContextCloseListenerpublic void closeFailure(CommandContext commandContext)
closeFailure in interface CommandContextCloseListenerCopyright © 2018 Flowable. All rights reserved.