IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.continuousquery.filter
Class NEQFilter<AttributeType,MatchType>

java.lang.Object
  extended by com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter<KeyType,ValueType,AttributeType,MatchType>
      extended by com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter<Object,Object,AttributeType,MatchType>
          extended by com.ibm.websphere.objectgrid.continuousquery.filter.NEQFilter<AttributeType,MatchType>
Type Parameters:
AttributeType - Type of the attribute referenced by the attribute path
MatchType - Type of the object being compared to
All Implemented Interfaces:
ContinuousQueryFilter<Object,Object,AttributeType,MatchType>, Serializable

public class NEQFilter<AttributeType,MatchType>
extends CompareFilter<Object,Object,AttributeType,MatchType>

This checks if an attribute does not equal a scalar.

Since:
8.6
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter
attributePath, objectToCompare
 
Fields inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter
version
 
Fields inherited from interface com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter
POJO_ADDRESSABLEKEYNAME, POJO_PATHSEPARATOR
 
Constructor Summary
NEQFilter()
          Constructor for serialization only.
NEQFilter(String attributePath, MatchType object)
           
 
Method Summary
 String createString()
          Creates a string representation of the continuous query filter, this method is used by AbstractCQFilter.toString().
 boolean filter(FilterContent content)
          Checks if the supplied object passes the filter.
 
Methods inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.CompareFilter
createString
 
Methods inherited from class com.ibm.websphere.objectgrid.continuousquery.filter.AbstractCQFilter
equals, getAttribute, hashCode, isKeyFilter, toString, validateAttributePath
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NEQFilter

public NEQFilter()
Constructor for serialization only.


NEQFilter

public NEQFilter(String attributePath,
                 MatchType object)
See Also:
CompareFilter.CompareFilter(String, Object)
Method Detail

filter

public boolean filter(FilterContent content)
               throws ContinuousQueryException
Description copied from interface: ContinuousQueryFilter
Checks if the supplied object passes the filter.

Parameters:
content - A representation of the cache entry to be checked
Returns:
true if the object matches the filtering criteria, false otherwise
Throws:
ContinuousQueryException
See Also:
ContinuousQueryFilter.filter(FilterContent)

createString

public String createString()
Description copied from class: AbstractCQFilter
Creates a string representation of the continuous query filter, this method is used by AbstractCQFilter.toString().

The string will be used for identifying and comparing filters, i.e. it will be used in AbstractCQFilter.hashCode() and AbstractCQFilter.equals(Object), so the returned value must be in unique format among all filters in the system.

Specified by:
createString in class AbstractCQFilter<Object,Object,AttributeType,MatchType>
Returns:
" != ", where refers to the path for accessing a value from the object to be filtered, and refers to the string representation of the object to be compared with.
See Also:
AbstractCQFilter.createString()

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.