Package org.opennms.web.filter
Class ConditionalFilter
- java.lang.Object
-
- org.opennms.web.filter.ConditionalFilter
-
-
Constructor Summary
Constructors Constructor Description ConditionalFilter(String conditionType, Filter... filters)
Constructor for ConditionalFilter.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
applyCriteria(OnmsCriteria criteria)
applyCriteriaint
bindParam(PreparedStatement ps, int parameterIndex)
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement.abstract org.hibernate.criterion.Criterion
getCriterion()
getCriterionString
getDescription()
getDescriptionFilter[]
getFilters()
getFiltersString
getParamSql()
getParamSqlString
getSql()
getSqlString
getTextDescription()
getTextDescriptionString
toString()
toString-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.opennms.web.filter.Filter
getTextDescriptionAsSanitizedHtml
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
ConstantTYPE="conditionalFilter"
- See Also:
- Constant Field Values
-
-
Method Detail
-
bindParam
public int bindParam(PreparedStatement ps, int parameterIndex) throws SQLException
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement. Returns the number of parameters that were bound.- Specified by:
bindParam
in interfaceFilter
- Parameters:
ps
- aPreparedStatement
object.parameterIndex
- a int.- Returns:
- a int.
- Throws:
SQLException
- if any.
-
getDescription
public String getDescription()
getDescription
- Specified by:
getDescription
in interfaceFilter
- Returns:
- a
String
object.
-
getParamSql
public String getParamSql()
getParamSql
- Specified by:
getParamSql
in interfaceFilter
- Returns:
- a
String
object.
-
getSql
public String getSql()
getSql
-
getTextDescription
public String getTextDescription()
getTextDescription
- Specified by:
getTextDescription
in interfaceFilter
- Returns:
- a
String
object.
-
applyCriteria
public void applyCriteria(OnmsCriteria criteria)
applyCriteria
- Parameters:
criteria
- aOnmsCriteria
object.
-
getCriterion
public abstract org.hibernate.criterion.Criterion getCriterion()
getCriterion
- Specified by:
getCriterion
in interfaceFilter
- Returns:
- a
Criterion
object.
-
-