Class PersistRightOperandResolver
java.lang.Object
org.bonitasoft.engine.core.operation.impl.PersistRightOperandResolver
- Author:
- Elias Ricken de Medeiros
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanshouldPersistByPosition(int currentIndex, List<SOperation> operations) Check if the right operand should be persisted based on its position (it's the last operation for the given left operand)booleanshouldPersistByValue(Object rightOperandValue, boolean shouldPersistByPosition, boolean shouldPersistOnNull) Check if the right operand should be persisted based of the right operand value
-
Constructor Details
-
PersistRightOperandResolver
-
-
Method Details
-
shouldPersistByPosition
Check if the right operand should be persisted based on its position (it's the last operation for the given left operand)- Parameters:
currentIndex- the index of current operationoperations- the list of all operations- Returns:
- true if the right operand should be persisted; false otherwise
-
shouldPersistByValue
public boolean shouldPersistByValue(Object rightOperandValue, boolean shouldPersistByPosition, boolean shouldPersistOnNull) Check if the right operand should be persisted based of the right operand value- Parameters:
rightOperandValue- the right operand valueshouldPersistByPosition- should persist based on operation position (position in the list of operations)shouldPersistOnNull- should persist on null result- Returns:
- true if the right operand should be persisted; false otherwise
-