|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.filter.BaseFilter<T>
org.opennms.web.filter.OneArgFilter<T>
public abstract class OneArgFilter<T>
OneArgFilter
| Field Summary |
|---|
| Fields inherited from class org.opennms.web.filter.BaseFilter |
|---|
m_filterName, m_sqlType |
| Constructor Summary | |
|---|---|
OneArgFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName,
T value)
Constructor for OneArgFilter. |
|
| Method Summary | |
|---|---|
int |
bindParam(PreparedStatement ps,
int parameterIndex)
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement. |
T |
getBoundValue(T value)
getBoundValue |
String |
getParamSql()
getParamSql |
String |
getSql()
getSql |
abstract String |
getSQLTemplate()
getSQLTemplate |
T |
getValue()
getValue |
String |
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 |
| Constructor Detail |
|---|
public OneArgFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName,
T value)
Constructor for OneArgFilter.
T - a T object.filterType - a String object.sqlType - a SQLType object.fieldName - a String object.propertyName - a String object.value - a T object.| Method Detail |
|---|
public final T getValue()
getValue
public abstract String getSQLTemplate()
getSQLTemplate
String object.public T getBoundValue(T value)
getBoundValue
value - a T object.
public final int bindParam(PreparedStatement ps,
int parameterIndex)
throws SQLException
bindParam in interface FilterbindParam in class BaseFilter<T>ps - a PreparedStatement object.parameterIndex - a int.
SQLException - if any.public final String getValueString()
getValueString
getValueString in class BaseFilter<T>String object.public final String getParamSql()
getParamSql
getParamSql in interface FiltergetParamSql in class BaseFilter<T>String object.public final String getSql()
getSql
getSql in interface FiltergetSql in class BaseFilter<T>String object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||