| java.lang.Object com.jofti.query.MatchRangeQuery com.jofti.query.MatchSmallerQuery
MatchSmallerQuery | public class MatchSmallerQuery extends MatchRangeQuery (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 <.
This query cannot 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 | MatchSmallerQuery(Class className, String propertyName, Comparable value) Construct a query supplying the classname of the object type to be returned, the
field to be queried and the value to be used. | public | MatchSmallerQuery(Class className, String propertyName, Comparable value, Object alias) | public | MatchSmallerQuery(String className, String propertyName, Comparable value) Construct a query supplying the classname of the object type to be returned, the
field to be queried and the value to be used. | public | MatchSmallerQuery(String className, String propertyName, Comparable value, Object alias) | public | MatchSmallerQuery(Class className, String propertyName, Comparable value, boolean inclusive) Construct a query supplying the classname of the object type to be returned, the
field to be queried and the value to be used. | public | MatchSmallerQuery(Class className, String propertyName, Comparable value, boolean inclusive, Object alias) | public | MatchSmallerQuery(String className, String propertyName, Comparable value, boolean inclusive) | public | MatchSmallerQuery(String className, String propertyName, Comparable value, boolean inclusive, Object alias) | public | MatchSmallerQuery(Comparable value, boolean inclusive) Construct a query supplying the value to be searched against. | public | MatchSmallerQuery(Comparable value, boolean inclusive, Object alias) |
MatchSmallerQuery | public MatchSmallerQuery(Class className, String propertyName, Comparable value)(Code) | | Construct a query supplying the classname of the object type to be returned, 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 would be:
new MatchSmallerQuery(org.package.Myclass.class, "myProperty" ,"some value");
Parameters: className - - the class of object to be returned. Parameters: propertyName - - the field name to use Parameters: value - - the value that is used as the search value. |
MatchSmallerQuery | public MatchSmallerQuery(String className, String propertyName, Comparable value)(Code) | | Construct a query supplying the classname of the object type to be returned, 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 would be:
new MatchSmallerQuery("org.package.Myclass", "myProperty" ,"some value");
Parameters: className - - the class of object to be returned. Parameters: propertyName - - the field name to use Parameters: value - - the value that is used as the search value. |
MatchSmallerQuery | public MatchSmallerQuery(Class className, String propertyName, Comparable value, boolean inclusive)(Code) | | Construct a query supplying the classname of the object type to be returned, the
field to be queried and the value to be used. This method allows inclusivity to be set.
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 would be:
new MatchSmallerQuery("org.package.Myclass", "myProperty" ,"some value");
Parameters: className - - the class of object to be returned. Parameters: propertyName - - the field name to use Parameters: value - - the value that is used as the search value. Parameters: inclusive - - whether the search should be inclusive. |
MatchSmallerQuery | public MatchSmallerQuery(Comparable value, boolean inclusive)(Code) | | Construct a query supplying the value to be searched against.
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 would be:
new MatchSmallerQuery("some value",true);
This is so you do not have to use the methods above in the manner of
new MatchSmallerQuery("java.lang.String", null ,"some value");
Parameters: value - - the value that is used as the search value. Parameters: inclusive - - indicates if the value is to be inclusive in range. |
|
|