org.opennms.web.filter
Class EqualsFilter<T>

java.lang.Object
  extended by org.opennms.web.filter.BaseFilter<T>
      extended by org.opennms.web.filter.OneArgFilter<T>
          extended by org.opennms.web.filter.EqualsFilter<T>
All Implemented Interfaces:
Filter
Direct Known Subclasses:
AcknowledgedByFilter, AcknowledgedByFilter, AcknowledgedByFilter, AlarmIdFilter, AlarmIDFilter, AlarmTypeFilter, EventDisplayFilter, EventIdFilter, ExactUEIFilter, ExactUEIFilter, IfIndexFilter, InterfaceFilter, InterfaceFilter, InterfaceFilter, InterfaceFilter, NodeFilter, NodeFilter, NodeFilter, NodeFilter, NotificationIdFilter, OutageIdFilter, ResponderFilter, ServiceFilter, ServiceFilter, ServiceFilter, ServiceFilter, SeverityFilter, SeverityFilter

public class EqualsFilter<T>
extends OneArgFilter<T>


Field Summary
 
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
 
Constructor Summary
EqualsFilter(String filterType, SQLType<T> type, String fieldName, String propertyName, T value)
           
 
Method Summary
 org.hibernate.criterion.Criterion getCriterion()
          Criterion used to construction an OnmsCritieria
 String getSQLTemplate()
           
 String getTextDescription()
          Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.
 
Methods inherited from class org.opennms.web.filter.OneArgFilter
bindParam, getBoundValue, getParamSql, getSql, getValue, getValueString
 
Methods inherited from class org.opennms.web.filter.BaseFilter
bindValue, formatValue, getDescription, getPropertyName, getSQLFieldName, getValueAsString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualsFilter

public EqualsFilter(String filterType,
                    SQLType<T> type,
                    String fieldName,
                    String propertyName,
                    T value)
Method Detail

getCriterion

public org.hibernate.criterion.Criterion getCriterion()
Description copied from interface: Filter
Criterion used to construction an OnmsCritieria

Specified by:
getCriterion in interface Filter
Specified by:
getCriterion in class BaseFilter<T>
Returns:
A Criterion that represents a criteria restriction imposed by this filter

getSQLTemplate

public String getSQLTemplate()
Specified by:
getSQLTemplate in class OneArgFilter<T>

getTextDescription

public String getTextDescription()
Description copied from interface: Filter
Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list.

Some examples (corresponding to the examples in getDescription):

Specified by:
getTextDescription in interface Filter
Specified by:
getTextDescription in class BaseFilter<T>


Copyright © 2009. All Rights Reserved.