javax.slee.profile.query
Class OrderedQueryExpression

java.lang.Object
  extended by javax.slee.profile.query.QueryExpression
      extended by javax.slee.profile.query.SimpleQueryExpression
          extended by javax.slee.profile.query.OrderedQueryExpression
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GreaterThan, GreaterThanOrEquals, LessThan, LessThanOrEquals

public abstract class OrderedQueryExpression
extends SimpleQueryExpression

The OrderedQueryExpression class is the base class for all dynamic query expressions that perform direct binary operator comparisons on profile attributes values where the type of the profile attribute type exhibits a notion of total order.

See Also:
Serialized Form

Constructor Summary
protected OrderedQueryExpression(java.lang.String attrName, java.lang.Object attrValue, QueryCollator collator)
          Create an OrderedQueryExpression for the attribute with the specified name and value.
 
Method Summary
 
Methods inherited from class javax.slee.profile.query.SimpleQueryExpression
getAttributeName, getAttributeValue, getCollator, getRelation, toString
 
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

OrderedQueryExpression

protected OrderedQueryExpression(java.lang.String attrName,
                                 java.lang.Object attrValue,
                                 QueryCollator collator)
                          throws java.lang.NullPointerException
Create an OrderedQueryExpression for the attribute with the specified name and value. An optional query collator may also be specified if the type of the attribute being compared is java.lang.String.

Parameters:
attrName - the name of the profile attribute.
attrValue - the value of the attribute to compare with.
collator - the collator to use for the comparison. May be null.
Throws:
java.lang.NullPointerException - if either attrName or attrValue is null.
java.lang.IllegalArgumentException - if the class of attrValue does not implement the java.lang.Comparable interface.


Copyright © 2009. All Rights Reserved.