|
|||||||||
| 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)
|
|
| 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)
|
String |
formatValue(T value)
|
abstract org.hibernate.criterion.Criterion |
getCriterion()
Criterion used to construction an OnmsCritieria |
String |
getDescription()
Returns a terse string (including a "=") that describes this filter in such a way to easily be included in an HTTP GET parameter. |
abstract String |
getParamSql()
Returns a parameterized SQL where clause. |
String |
getPropertyName()
|
abstract String |
getSql()
Returns an expression for a SQL where clause. |
String |
getSQLFieldName()
|
abstract String |
getTextDescription()
Returns a terse but human-readable string describing this filter in such a way to easily be included in a search results list. |
String |
getValueAsString(T value)
|
abstract String |
getValueString()
|
String |
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)
| Method Detail |
|---|
public String getSQLFieldName()
public String getPropertyName()
public final String getDescription()
FilterSome examples:
getDescription in interface Filter
public final void bindValue(PreparedStatement ps,
int parameterIndex,
T value)
throws SQLException
SQLExceptionpublic String formatValue(T value)
public final String getValueAsString(T value)
public abstract String getValueString()
public abstract org.hibernate.criterion.Criterion getCriterion()
Filter
getCriterion in interface Filter
public abstract int bindParam(PreparedStatement ps,
int parameterIndex)
throws SQLException
Filter
bindParam in interface FilterSQLExceptionpublic abstract String getParamSql()
Filter
getParamSql in interface Filterpublic abstract String getSql()
Filter
getSql in interface Filterpublic abstract String getTextDescription()
Filter
Some examples (corresponding to the examples in
getDescription):
getTextDescription in interface Filterpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||