public static class QueryHelper.WalkerCallbackAdapter extends Object implements QueryHelper.WalkerCallback
Modifier and Type | Field and Description |
---|---|
protected static InvalidQueryException |
UNSUPPORTED |
Constructor and Description |
---|
WalkerCallbackAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
and()
Called any time an AND is encountered.
|
void |
between(String propertyName,
String firstValue,
String secondValue,
boolean negated)
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 |
exists(String propertyName,
boolean negated)
Called any time an EXISTS clause is encountered.
|
void |
in(String propertyName,
boolean negated,
String... propertyValues)
Called any time an IN clause is encountered.
|
void |
matches(String property,
String value,
boolean negated)
Called any time a MATCHES clause is encountered.
|
void |
or()
Called any time an OR is encountered.
|
protected static final InvalidQueryException UNSUPPORTED
public void exists(String propertyName, boolean negated)
QueryHelper.WalkerCallback
exists
in interface QueryHelper.WalkerCallback
propertyName
- Name of the propertynegated
- returns true if "NOT EXISTS" was usedpublic void between(String propertyName, String firstValue, String secondValue, boolean negated)
QueryHelper.WalkerCallback
between
in interface QueryHelper.WalkerCallback
propertyName
- Name of the propertyfirstValue
- StringsecondValue
- Stringnegated
- returns true if "NOT BETWEEN" was usedpublic void comparison(int type, String propertyName, String propertyValue, boolean negated)
QueryHelper.WalkerCallback
comparison
in interface QueryHelper.WalkerCallback
public void in(String propertyName, boolean negated, String... propertyValues)
QueryHelper.WalkerCallback
in
in interface QueryHelper.WalkerCallback
propertyName
- Name of the propertynegated
- returns true if "NOT IN" was usedpropertyValues
- the property valuespublic void matches(String property, String value, boolean negated)
QueryHelper.WalkerCallback
matches
in interface QueryHelper.WalkerCallback
property
- Name of the propertyvalue
- Stringnegated
- returns true if "NOT MATCHES" was usedpublic void and()
QueryHelper.WalkerCallback
and
in interface QueryHelper.WalkerCallback
public void or()
QueryHelper.WalkerCallback
or
in interface QueryHelper.WalkerCallback
Copyright © 2005–2017 Alfresco Software. All rights reserved.