public abstract class OneArgFilter<T> extends BaseFilter<T>
m_filterName, m_sqlType
Constructor and Description |
---|
OneArgFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName,
T value)
Constructor for OneArgFilter.
|
Modifier and Type | Method and 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.
|
T |
getBoundValue(T value)
getBoundValue
|
String |
getParamSql()
getParamSql
|
String |
getSql()
getSql
|
abstract String |
getSQLTemplate()
getSQLTemplate
|
String |
getTextDescription()
getTextDescription
|
T |
getValue()
getValue
|
String |
getValueString()
getValueString
|
bindValue, formatValue, getCriterion, getDescription, getPropertyName, getSQLFieldName, getValueAsString, toString
public final T getValue()
getValue
public T getBoundValue(T value)
getBoundValue
value
- a T object.public final int bindParam(PreparedStatement ps, int parameterIndex) throws SQLException
bindParam
in interface Filter
bindParam
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 Filter
getParamSql
in class BaseFilter<T>
String
object.public final String getSql()
getSql
public String getTextDescription()
BaseFilter
getTextDescription
getTextDescription
in interface Filter
getTextDescription
in class BaseFilter<T>
String
object.Copyright © 2017. All rights reserved.