public class PersistRightOperandResolver extends Object
| Constructor and Description |
|---|
PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldPersistByPosition(int currentIndex,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations)
Check if the right operand should be persisted based on its position (it's the last operation for the given left operand)
|
boolean |
shouldPersistByValue(Object rightOperandValue,
boolean shouldPersistByPosition,
boolean shouldPersistOnNull)
Check if the right operand should be persisted based of the right operand value
|
public PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer)
public boolean shouldPersistByPosition(int currentIndex,
List<org.bonitasoft.engine.core.operation.model.SOperation> operations)
currentIndex - the index of current operationoperations - the list of all operationspublic boolean shouldPersistByValue(Object rightOperandValue, boolean shouldPersistByPosition, boolean shouldPersistOnNull)
rightOperandValue - the right operand valueshouldPersistByPosition - should persist based on operation position (position in the list of operations)shouldPersistOnNull - should persist on null resultCopyright © 2016 Bonitasoft S.A.. All rights reserved.