Class EventOperand

java.lang.Object
com.avoka.fc.core.event.operand.EventOperand
Direct Known Subclasses:
AbstractEventOperand, EventEqual, EventNotEqual

public abstract class EventOperand extends Object
Event Operand for checking the values within the change payload against the event configuration
Since:
22.10.0
  • Constructor Details

    • EventOperand

      public EventOperand()
  • Method Details

    • compareValues

      public abstract boolean compareValues(org.apache.cayenne.commitlog.model.ObjectChangeType changeType, org.apache.commons.lang3.tuple.Pair<Object,Object> changes, Object eventConfigPreviousValue, List<Object> eventConfigTargetValues)
      Compares the values for a section of the configuration
      Parameters:
      changeType - type of change, i.e. INSERT, DELETE, UPDATE
      changes - that have occurred on the object
      eventConfigPreviousValue - configuration to check for - previous values must equal value specified
      eventConfigTargetValues - configuration to check the change target value - target values are dependent on the operand
      Returns:
      true if matched