public abstract class BaseFilter<T> extends Object implements Filter
Modifier and Type | Field and Description |
---|---|
protected String |
m_filterName |
protected SQLType<T> |
m_sqlType |
Constructor and Description |
---|
BaseFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName)
Constructor for BaseFilter.
|
Modifier and Type | Method and Description |
---|---|
abstract int |
bindParam(PreparedStatement ps,
int parameterIndex)
Binds the parameter values corresponding to the ? tokens in the string
returned from getParamSql() to a prepared statement.
|
void |
bindValue(PreparedStatement ps,
int parameterIndex,
T value)
bindValue
|
String |
formatValue(T value)
formatValue
|
abstract org.hibernate.criterion.Criterion |
getCriterion()
getCriterion
|
String |
getDescription()
getDescription
|
abstract String |
getParamSql()
getParamSql
|
String |
getPropertyName()
getPropertyName
|
abstract String |
getSql()
getSql
|
String |
getSQLFieldName()
getSQLFieldName
|
abstract String |
getTextDescription()
getTextDescription
|
String |
getValueAsString(T value)
getValueAsString
|
abstract String |
getValueString()
getValueString
|
String |
toString()
toString
|
public String getDescription()
getDescription
getDescription
in interface Filter
String
object.public final void bindValue(PreparedStatement ps, int parameterIndex, T value) throws SQLException
bindValue
ps
- a PreparedStatement
object.parameterIndex
- a int.value
- a T object.SQLException
- if any.public String formatValue(T value)
formatValue
value
- a T object.String
object.public final String getValueAsString(T value)
getValueAsString
value
- a T object.String
object.public abstract org.hibernate.criterion.Criterion getCriterion()
getCriterion
getCriterion
in interface Filter
Criterion
object.public abstract int bindParam(PreparedStatement ps, int parameterIndex) throws SQLException
bindParam
in interface Filter
ps
- a PreparedStatement
object.parameterIndex
- a int.SQLException
- if any.public abstract String getParamSql()
getParamSql
getParamSql
in interface Filter
String
object.public abstract String getSql()
getSql
public abstract String getTextDescription()
getTextDescription
getTextDescription
in interface Filter
String
object.Copyright © 2020. All rights reserved.