public class PersistRightOperandResolver
extends java.lang.Object
| Constructor and Description |
|---|
PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer) |
| Modifier and Type | Method and Description |
|---|---|
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)
|
boolean |
shouldPersistByValue(java.lang.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,
java.util.List<SOperation> operations)
currentIndex - the index of current operationoperations - the list of all operationspublic boolean shouldPersistByValue(java.lang.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 result