Interface QueryHelper.WalkerCallback
- All Known Implementing Classes:
AbstractClassImpl.ClassQueryWalker
,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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
and()
Called any time an AND is encountered.void
Called any time a BETWEEN clause is encountered.void
comparison
(int type, String propertyName, String propertyValue, boolean negated) One of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS;void
Called any time an EXISTS clause is encountered.void
Called any time an IN clause is encountered.void
Called any time a MATCHES clause is encountered.void
or()
Called any time an OR is encountered.
-
Method Details
-
exists
Called any time an EXISTS clause is encountered.- Parameters:
propertyName
- Name of the propertynegated
- returns true if "NOT EXISTS" was used
-
between
Called any time a BETWEEN clause is encountered.- Parameters:
propertyName
- Name of the propertyfirstValue
- StringsecondValue
- Stringnegated
- returns true if "NOT BETWEEN" was used
-
comparison
One of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS; -
in
Called any time an IN clause is encountered.- Parameters:
property
- Name of the propertynegated
- returns true if "NOT IN" was usedpropertyValues
- the property values
-
matches
Called any time a MATCHES clause is encountered.- Parameters:
property
- Name of the propertypropertyValue
- Stringnegated
- returns true if "NOT MATCHES" was used
-
and
void and()Called any time an AND is encountered. -
or
void or()Called any time an OR is encountered.
-