public abstract class SimpleQueryExpression extends QueryExpression
SimpleQueryExpression class is the base class for all dynamic
query expressions that perform binary operator comparisons on profile attribute
values.| Modifier | Constructor and Description |
|---|---|
protected |
SimpleQueryExpression(String attrName,
Object attrValue,
QueryCollator collator)
Create a
SimpleQueryExpression for the attribute with the
specified name. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName()
Get the name of the profile attribute used by this query expression.
|
Object |
getAttributeValue()
Get the value the profile attribute will be compared to.
|
QueryCollator |
getCollator()
Get the query collator used by this query expression.
|
protected abstract String |
getRelation()
Get the symbol or other name for this expression relation to be used in the
toString output. |
protected void |
toString(StringBuffer buf)
Get a string representation for this query expression.
|
toStringprotected SimpleQueryExpression(String attrName, Object attrValue, QueryCollator collator)
SimpleQueryExpression for the attribute with the
specified name. An optional query collator may also be specified if the
type of the attribute being compared is java.lang.String.attrName - the name of the profile attribute to compare.attrValue - the value of the attribute to compare with.collator - the collator to use for the expression, or null
if no collator is specified.NullPointerException - if either attrName or
attrValue is null.public final String getAttributeName()
public final Object getAttributeValue()
public final QueryCollator getCollator()
null if one has not been
specified for this query expression.protected final void toString(StringBuffer buf)
QueryExpressiontoString in class QueryExpressionbuf - a string buffer the string representation should be appended to.protected abstract String getRelation()
toString output.