|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.web.filter.BaseFilter<T>
public abstract class BaseFilter<T>
BaseFilter
| Field Summary | |
|---|---|
protected String |
m_filterName
|
protected SQLType<T> |
m_sqlType
|
| Constructor Summary | |
|---|---|
BaseFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName)
Constructor for BaseFilter. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String m_filterName
protected SQLType<T> m_sqlType
| Constructor Detail |
|---|
public BaseFilter(String filterType,
SQLType<T> sqlType,
String fieldName,
String propertyName)
Constructor for BaseFilter.
T - a T object.filterType - a String object.sqlType - a SQLType object.fieldName - a String object.propertyName - a String object.| Method Detail |
|---|
public String getSQLFieldName()
getSQLFieldName
String object.public String getPropertyName()
getPropertyName
String object.public final String getDescription()
getDescription
getDescription in interface FilterString 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 String getValueString()
getValueString
String object.public abstract org.hibernate.criterion.Criterion getCriterion()
getCriterion
getCriterion in interface FilterCriterion object.
public abstract int bindParam(PreparedStatement ps,
int parameterIndex)
throws SQLException
bindParam in interface Filterps - a PreparedStatement object.parameterIndex - a int.
SQLException - if any.public abstract String getParamSql()
getParamSql
getParamSql in interface FilterString object.public abstract String getSql()
getSql
getSql in interface FilterString object.public abstract String getTextDescription()
getTextDescription
getTextDescription in interface FilterString object.public String toString()
toString
toString in class ObjectString object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||