Interface QueryHelper.WalkerCallback

All Known Implementing Classes:
AbstractClassImpl.ClassQueryWalker, BasicQueryWalker, MapBasedQueryWalker, MapBasedQueryWalkerOrSupported, QueryHelper.WalkerCallbackAdapter, TaskVariablesWalkerCallback
Enclosing class:
QueryHelper

public static interface QueryHelper.WalkerCallback
An interface used when walking a query tree. Calls are made to methods when the particular clause is encountered.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    and()
    Called any time an AND is encountered.
    default void
    between(String propertyName, String firstValue, String secondValue, boolean negated)
    Called any time a BETWEEN clause is encountered.
    default void
    comparison(int type, String propertyName, String propertyValue, boolean negated)
    One of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS;
    default void
    exists(String propertyName, boolean negated)
    Called any time an EXISTS clause is encountered.
    getProperty(String propertyName, int type, boolean negated)
     
    default void
    in(String property, boolean negated, String... propertyValues)
    Called any time an IN clause is encountered.
    default void
    matches(String property, String propertyValue, boolean negated)
    Called any time a MATCHES clause is encountered.
    default void
    or()
    Called any time an OR is encountered.
  • Field Details

  • Method Details

    • exists

      default void exists(String propertyName, boolean negated)
      Called any time an EXISTS clause is encountered.
      Parameters:
      propertyName - Name of the property
      negated - returns true if "NOT EXISTS" was used
    • between

      default void between(String propertyName, String firstValue, String secondValue, boolean negated)
      Called any time a BETWEEN clause is encountered.
      Parameters:
      propertyName - Name of the property
      firstValue - String
      secondValue - String
      negated - returns true if "NOT BETWEEN" was used
    • comparison

      default void comparison(int type, String propertyName, String propertyValue, boolean negated)
      One of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS;
    • in

      default void in(String property, boolean negated, String... propertyValues)
      Called any time an IN clause is encountered.
      Parameters:
      property - Name of the property
      negated - returns true if "NOT IN" was used
      propertyValues - the property values
    • matches

      default void matches(String property, String propertyValue, boolean negated)
      Called any time a MATCHES clause is encountered.
      Parameters:
      property - Name of the property
      propertyValue - String
      negated - returns true if "NOT MATCHES" was used
    • and

      default void and()
      Called any time an AND is encountered.
    • or

      default void or()
      Called any time an OR is encountered.
    • getProperty

      default Collection<String> getProperty(String propertyName, int type, boolean negated)