Package org.opennms.web.filter
Class MultiArgFilter<T>
- java.lang.Object
-
- org.opennms.web.filter.BaseFilter<T>
-
- org.opennms.web.filter.MultiArgFilter<T>
-
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
BetweenFilter
,InFilter
public abstract class MultiArgFilter<T> extends BaseFilter<T>
TwoArgFilter- Since:
- 1.8.1
- Version:
- $Id: $
- Author:
- brozow
-
-
Field Summary
-
Fields inherited from class org.opennms.web.filter.BaseFilter
m_filterName, m_sqlType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description int
bindParam(PreparedStatement ps, int parameterIndex)
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement.String
getParamSql()
getParamSqlString
getSql()
getSqlabstract String
getSQLTemplate()
getSQLTemplateT[]
getValues()
getValuesList<T>
getValuesAsList()
getValuesAsListString
getValueString()
getValueString-
Methods inherited from class org.opennms.web.filter.BaseFilter
bindValue, formatValue, getCriterion, getDescription, getPropertyName, getSQLFieldName, getTextDescription, getValueAsString, 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
-
-
-
-
Method Detail
-
getValues
public T[] getValues()
getValues
- Returns:
- an array of T objects.
-
bindParam
public final 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
- Specified by:
bindParam
in classBaseFilter<T>
- Parameters:
ps
- aPreparedStatement
object.parameterIndex
- a int.- Returns:
- a int.
- Throws:
SQLException
- if any.
-
getValueString
public final String getValueString()
getValueString
- Specified by:
getValueString
in classBaseFilter<T>
- Returns:
- a
String
object.
-
getParamSql
public final String getParamSql()
getParamSql
- Specified by:
getParamSql
in interfaceFilter
- Specified by:
getParamSql
in classBaseFilter<T>
- Returns:
- a
String
object.
-
-