|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.profile.query.QueryExpression
javax.slee.profile.query.SimpleQueryExpression
public abstract class SimpleQueryExpression
The SimpleQueryExpression class is the base class for all dynamic
query expressions that perform binary operator comparisons on profile attribute
values.
| Constructor Summary | |
|---|---|
protected |
SimpleQueryExpression(java.lang.String attrName,
java.lang.Object attrValue,
QueryCollator collator)
Create a SimpleQueryExpression for the attribute with the
specified name. |
| Method Summary | |
|---|---|
java.lang.String |
getAttributeName()
Get the name of the profile attribute used by this query expression. |
java.lang.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 java.lang.String |
getRelation()
Get the symbol or other name for this expression relation to be used in the toString output. |
protected void |
toString(java.lang.StringBuffer buf)
Get a string representation for this query expression. |
| Methods inherited from class javax.slee.profile.query.QueryExpression |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SimpleQueryExpression(java.lang.String attrName,
java.lang.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.
java.lang.NullPointerException - if either attrName or
attrValue is null.| Method Detail |
|---|
public final java.lang.String getAttributeName()
public final java.lang.Object getAttributeValue()
public final QueryCollator getCollator()
null if one has not been
specified for this query expression.protected final void toString(java.lang.StringBuffer buf)
QueryExpression
toString in class QueryExpressionbuf - a string buffer the string representation should be appended to.protected abstract java.lang.String getRelation()
toString output.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||