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 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 progress
      rightOperandValue - result of the evaluation of right operand expression
      expressionContext - the expression context
      shouldPersistValue - 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.