Class QueryHelper.WalkerCallbackAdapter
- java.lang.Object
-
- org.alfresco.rest.framework.resource.parameters.where.QueryHelper.WalkerCallbackAdapter
-
- All Implemented Interfaces:
QueryHelper.WalkerCallback
- Direct Known Subclasses:
MapBasedQueryWalker,TaskVariablesWalkerCallback
- Enclosing class:
- QueryHelper
public static class QueryHelper.WalkerCallbackAdapter extends Object implements QueryHelper.WalkerCallback
Default implementation. Override the methods you are interested in. If you don't override the methods then an InvalidQueryException will be thrown.
-
-
Field Summary
Fields Modifier and Type Field Description protected static InvalidQueryExceptionUNSUPPORTED
-
Constructor Summary
Constructors Constructor Description WalkerCallbackAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidand()Called any time an AND is encountered.voidbetween(String propertyName, String firstValue, String secondValue, boolean negated)Called any time a BETWEEN clause is encountered.voidcomparison(int type, String propertyName, String propertyValue, boolean negated)One of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS;voidexists(String propertyName, boolean negated)Called any time an EXISTS clause is encountered.voidin(String propertyName, boolean negated, String... propertyValues)Called any time an IN clause is encountered.voidmatches(String property, String value, boolean negated)Called any time a MATCHES clause is encountered.voidor()Called any time an OR is encountered.
-
-
-
Field Detail
-
UNSUPPORTED
protected static final InvalidQueryException UNSUPPORTED
-
-
Method Detail
-
exists
public void exists(String propertyName, boolean negated)
Description copied from interface:QueryHelper.WalkerCallbackCalled any time an EXISTS clause is encountered.- Specified by:
existsin interfaceQueryHelper.WalkerCallback- Parameters:
propertyName- Name of the propertynegated- returns true if "NOT EXISTS" was used
-
between
public void between(String propertyName, String firstValue, String secondValue, boolean negated)
Description copied from interface:QueryHelper.WalkerCallbackCalled any time a BETWEEN clause is encountered.- Specified by:
betweenin interfaceQueryHelper.WalkerCallback- Parameters:
propertyName- Name of the propertyfirstValue- StringsecondValue- Stringnegated- returns true if "NOT BETWEEN" was used
-
comparison
public void comparison(int type, String propertyName, String propertyValue, boolean negated)Description copied from interface:QueryHelper.WalkerCallbackOne of EQUALS LESSTHAN GREATERTHAN LESSTHANOREQUALS GREATERTHANOREQUALS;- Specified by:
comparisonin interfaceQueryHelper.WalkerCallback
-
in
public void in(String propertyName, boolean negated, String... propertyValues)
Description copied from interface:QueryHelper.WalkerCallbackCalled any time an IN clause is encountered.- Specified by:
inin interfaceQueryHelper.WalkerCallback- Parameters:
propertyName- Name of the propertynegated- returns true if "NOT IN" was usedpropertyValues- the property values
-
matches
public void matches(String property, String value, boolean negated)
Description copied from interface:QueryHelper.WalkerCallbackCalled any time a MATCHES clause is encountered.- Specified by:
matchesin interfaceQueryHelper.WalkerCallback- Parameters:
property- Name of the propertyvalue- Stringnegated- returns true if "NOT MATCHES" was used
-
and
public void and()
Description copied from interface:QueryHelper.WalkerCallbackCalled any time an AND is encountered.- Specified by:
andin interfaceQueryHelper.WalkerCallback
-
or
public void or()
Description copied from interface:QueryHelper.WalkerCallbackCalled any time an OR is encountered.- Specified by:
orin interfaceQueryHelper.WalkerCallback
-
-