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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectcomputeNewValueForLeftOperand(SOperation operation, java.lang.Object rightOperandValue, SExpressionContext expressionContext, boolean shouldPersistValue)Calculates the new value of the left operand base of right operand expression valuejava.lang.StringgetOperationType()booleanshouldPersistOnNullValue()Determines if the operation right value should be persisted when the value is evaluated to null.
-
-
-
Method Detail
-
computeNewValueForLeftOperand
java.lang.Object computeNewValueForLeftOperand(SOperation operation, java.lang.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
java.lang.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.
-
-