Class XpathUpdateQueryOperationExecutorStrategy
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.XpathUpdateQueryOperationExecutorStrategy
-
- All Implemented Interfaces:
OperationExecutorStrategy
@Component public class XpathUpdateQueryOperationExecutorStrategy extends java.lang.Object implements OperationExecutorStrategy
- Author:
- Zhang Bole, Matthieu Chaffotte, Baptiste Mesta
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_XPATH_UPDATE_QUERY
-
Constructor Summary
Constructors Constructor Description XpathUpdateQueryOperationExecutorStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectcomputeNewValueForLeftOperand(SOperation operation, java.lang.Object value, 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.
-
-
-
Field Detail
-
TYPE_XPATH_UPDATE_QUERY
public static final java.lang.String TYPE_XPATH_UPDATE_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getOperationType
public java.lang.String getOperationType()
- Specified by:
getOperationTypein interfaceOperationExecutorStrategy
-
computeNewValueForLeftOperand
public java.lang.Object computeNewValueForLeftOperand(SOperation operation, java.lang.Object value, SExpressionContext expressionContext, boolean shouldPersistValue) throws SOperationExecutionException
Description copied from interface:OperationExecutorStrategyCalculates the new value of the left operand base of right operand expression value- Specified by:
computeNewValueForLeftOperandin interfaceOperationExecutorStrategy- Parameters:
operation- the operation in progressvalue- 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
-
shouldPersistOnNullValue
public boolean shouldPersistOnNullValue()
Description copied from interface:OperationExecutorStrategyDetermines if the operation right value should be persisted when the value is evaluated to null.- Specified by:
shouldPersistOnNullValuein interfaceOperationExecutorStrategy- Returns:
- true if the the evaluated right value should be persisted; false otherwise.
-
-