Class Match

java.lang.Object
overit.geocall.sql.code.criterion.Match

public class Match extends Object
The class contains all the information needed to check if the values ??passed in input (keys and/or values) match the Decisions.
  • Field Details

    • _fieldPattern

      protected final Pattern _fieldPattern
    • _valuePattern

      protected final Pattern _valuePattern
    • _type

      protected final Class<?> _type
    • _valuesIn

      protected final Set<?> _valuesIn
    • _valuesOut

      protected final Set<?> _valuesOut
  • Constructor Details

  • Method Details

    • setFieldPattern

      public Match setFieldPattern(String pattern)
      Gets a Match object with the field pattern that must be respected for the decision to match.
      Parameters:
      pattern - The field pattern to set.
      Returns:
      A Match object
    • setValuePattern

      public Match setValuePattern(String pattern)
      Gets a Match object with the value pattern that must be respected for the decision to match.
      Parameters:
      pattern - The value pattern to set.
      Returns:
      A Match object
    • setType

      public Match setType(Class<?> type)
      Gets a Match object with the value's type Class that must be respected for the decision to match.
      Parameters:
      type - The value's type Class to set.
      Returns:
      A Match object
    • setValuesIn

      public Match setValuesIn(Collection<?> valuesIn)
      Gets a Match object with the value's set (for the IN sql CLAUSE) that must be respected for the decision to match.
      Parameters:
      valuesIn - The value's set to set.
      Returns:
      A Match object
    • setValuesOut

      public Match setValuesOut(Collection<?> valuesOut)
      Gets a Match object with the value's set (for the NOT IN sql CLAUSE) that must be respected for the decision to match.
      Parameters:
      valuesOut - The value's set to set.
      Returns:
      A Match object
    • matches

      protected boolean matches(String name, Object value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object