Class PersistRightOperandResolver

java.lang.Object
org.bonitasoft.engine.core.operation.impl.PersistRightOperandResolver

@Component public class PersistRightOperandResolver extends Object
Author:
Elias Ricken de Medeiros
  • Constructor Details

    • PersistRightOperandResolver

      public PersistRightOperandResolver(OperationsAnalyzer operationsAnalyzer)
  • Method Details

    • shouldPersistByPosition

      public boolean shouldPersistByPosition(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)
      Parameters:
      currentIndex - the index of current operation
      operations - 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 value
      shouldPersistByPosition - 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