| java.lang.Object com.jofti.query.namespace.MatchNSRangeQuery com.jofti.query.namespace.MatchNSSmallerQuery
MatchNSSmallerQuery | public class MatchNSSmallerQuery extends MatchNSRangeQuery (Code) | | A utility class to enable simple queries to be done easily. The Query matches everything smaller than the
value passed in for that particular field. The optional inclusive flag allows the behaviour to be either <= or just <.
All nameSpace queries must provide a correct namespace type for the implementation. Some nameSpaces
are hierachical and so the search will use the nameSpace as starting point. Others are flat and so there is no
traversal step.
This query acannot be combined with any other. iF you want to construct more complex queries use the @link com.jofti.query.Query class.
author: Steve Woodcock |
Constructor Summary | |
public | MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value) Construct a query supplying the classname of the object type to be returned, the namespace
under which to start the search. | public | MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value, Object alias) | public | MatchNSSmallerQuery(String className, Object nameSpace, String propertyName, Comparable value) | public | MatchNSSmallerQuery(String className, Object nameSpace, String propertyName, Comparable value, Object alias) | public | MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value, boolean inclusive) Construct a query supplying the classname of the object type to be returned, the namespace
under which to start the search. | public | MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value, boolean inclusive, Object alias) | public | MatchNSSmallerQuery(Object nameSpace, Comparable value, boolean inclusive) Construct a query supplying the value to be searched against and the namespace
under which to start the search. | public | MatchNSSmallerQuery(Object nameSpace, Comparable value, boolean inclusive, Object alias) |
MatchNSSmallerQuery | public MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value)(Code) | | Construct a query supplying the classname of the object type to be returned, the namespace
under which to start the search. The field to be queried and the value to be used.
The field type in the object and the value must be of the same type.
It is assumed that the search is inclusive.
An example usage (for JBossCache) would be:
new MatchNSSmallerQuery("org.package.Myclass", "/test", "myProperty" ,"some value");
Parameters: className - - the class of object to be returned. Parameters: nameSpace - - the name space to be searched. Parameters: propertyName - - the field name to use Parameters: value - - the value that is used as the search value. |
MatchNSSmallerQuery | public MatchNSSmallerQuery(Class className, Object nameSpace, String propertyName, Comparable value, boolean inclusive)(Code) | | Construct a query supplying the classname of the object type to be returned, the namespace
under which to start the search. The field to be queried and the value to be used. The method
also allows control of whether the query is inclusive of the value or not.
The field type in the object and the value must be of the same type.
An example usage (for JBossCache) would be:
new MatchNSSmallerQuery("org.package.Myclass", "/test", "myProperty" ,"some value");
Parameters: className - - the class of object to be returned. Parameters: nameSpace - - the name space to be searched. Parameters: propertyName - - the field name to use Parameters: value - - the value that is used as the search value. Parameters: inclusive - - indicates if the value is to be inclusive in range. |
MatchNSSmallerQuery | public MatchNSSmallerQuery(Object nameSpace, Comparable value, boolean inclusive)(Code) | | Construct a query supplying the value to be searched against and the namespace
under which to start the search. This is a convenience method for classes (such as String,Integer etc)
that have no property value as such. Instead the value is the class type.
An example usage (for JBossCache) would be:
new MatchNSSmallerQuery( "/test","some value",true);
This is so you do not have to use the methods above in the manner of
new MatchNSSmallerQuery("java.lang.String", "/test", null ,"some value");
Parameters: nameSpace - - the name space to be searched. Parameters: value - - the value that is used as the search value. Parameters: inclusive - - indicates if the value is to be inclusive in range. |
|
|