Class PersistRightOperandResolver
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.PersistRightOperandResolver
-
@Component public class PersistRightOperandResolver extends java.lang.Object- Author:
- Elias Ricken de Medeiros
-
-
Constructor Summary
Constructors Constructor Description PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanshouldPersistByPosition(int currentIndex, java.util.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(java.lang.Object rightOperandValue, boolean shouldPersistByPosition, boolean shouldPersistOnNull)Check if the right operand should be persisted based of the right operand value
-
-
-
Constructor Detail
-
PersistRightOperandResolver
public PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer)
-
-
Method Detail
-
shouldPersistByPosition
public boolean shouldPersistByPosition(int currentIndex, java.util.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)- 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(java.lang.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
-
-