Interface OperationExecutorStrategy
- All Known Implementing Classes:
AssignmentOperationExecutorStrategy,BusinessDataAssignmentStrategy,BusinessDataJavaMethodOperationExecutorStrategy,JavaMethodOperationExecutorStrategy,XpathUpdateQueryOperationExecutorStrategy
public interface OperationExecutorStrategy
- Author:
- Zhang Bole, Elias Ricken de Medeiros, Baptiste Mesta, Matthieu Chaffotte
-
Method Summary
Modifier and TypeMethodDescriptioncomputeNewValueForLeftOperand(SOperation operation, Object rightOperandValue, SExpressionContext expressionContext, boolean shouldPersistValue) Calculates the new value of the left operand base of right operand expression valuebooleanDetermines if the operation right value should be persisted when the value is evaluated to null.
-
Method Details
-
computeNewValueForLeftOperand
Object computeNewValueForLeftOperand(SOperation operation, Object rightOperandValue, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException Calculates the new value of the left operand base of right operand expression value- Parameters:
operation- the operation in progressrightOperandValue- result of the evaluation of right operand expressionexpressionContext- the expression contextshouldPersistValue- true if the right operand must be persisted (Business Data)- Returns:
- the new value to set the left operand with
- Throws:
SOperationExecutionException
-
getOperationType
String getOperationType() -
shouldPersistOnNullValue
boolean shouldPersistOnNullValue()Determines if the operation right value should be persisted when the value is evaluated to null.- Returns:
- true if the the evaluated right value should be persisted; false otherwise.
-