| java.lang.Object com.jofti.query.namespace.MatchNSNotQuery
MatchNSNotQuery | public class MatchNSNotQuery implements IndexQuery,INameSpaceAware,QueryId(Code) | | A utility class to enable simple queries to be done easily. The Query matches everything does not match
the value for particular field. This is equivalent to !=.
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 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 | MatchNSNotQuery(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 | MatchNSNotQuery(Class className, Object nameSpace, String propertyName, Comparable value, Object alias) | public | MatchNSNotQuery(String className, Object nameSpace, String propertyName, Comparable value) | public | MatchNSNotQuery(String className, Object nameSpace, String propertyName, Comparable value, Object alias) | public | MatchNSNotQuery(Object nameSpace, Comparable value) Construct a query supplying the value to be searched against and the namespace
under which to start the search. | public | MatchNSNotQuery(Object nameSpace, Comparable value, Object alias) |
MatchNSNotQuery | public MatchNSNotQuery(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.
An example usage (for JBossCache) would be:
new MatchNSNotQuery("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. |
MatchNSNotQuery | public MatchNSNotQuery(Object nameSpace, Comparable value)(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 MatchNSNotQuery("/test","some value");
This is so you do not have to use the methods above in the manner of
new MatchNSNotQuery("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. |
getClassName | public Class getClassName()(Code) | | Returns the className. |
getNameSpace | public synchronized Object getNameSpace()(Code) | | Returns the nameSpace. |
getNameSpaceWrapper | public synchronized INameSpace getNameSpaceWrapper()(Code) | | Returns the wrapper. |
getPropertyName | public String getPropertyName()(Code) | | Returns the propertyName. |
hashCode | public int hashCode()(Code) | | |
setNameSpace | public synchronized void setNameSpace(Object nameSpace)(Code) | | Parameters: nameSpace - The nameSpace to set. |
|
|