|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.web.filter.ConditionalFilter
public abstract class ConditionalFilter
| Field Summary | |
|---|---|
static String |
TYPE
|
| Constructor Summary | |
|---|---|
ConditionalFilter(String conditionType,
Filter... filters)
|
|
| Method Summary | |
|---|---|
void |
applyCriteria(OnmsCriteria criteria)
|
int |
bindParam(PreparedStatement ps,
int parameterIndex)
Binds the parameter values corresponding to the ? tokens in the string returned from getParamSql() to a prepared statement. |
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. |
Filter[] |
getFilters()
|
String |
getParamSql()
Returns a parameterized SQL where clause. |
String |
getSql()
Returns an expression for a SQL where clause. |
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 |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TYPE
| Constructor Detail |
|---|
public ConditionalFilter(String conditionType,
Filter... filters)
| Method Detail |
|---|
public Filter[] getFilters()
public int bindParam(PreparedStatement ps,
int parameterIndex)
throws SQLException
Filter
bindParam in interface FilterSQLExceptionpublic String getDescription()
FilterSome examples:
getDescription in interface Filterpublic String getParamSql()
Filter
getParamSql in interface Filterpublic String getSql()
Filter
getSql in interface Filterpublic String getTextDescription()
Filter
Some examples (corresponding to the examples in
getDescription):
getTextDescription in interface Filterpublic void applyCriteria(OnmsCriteria criteria)
public abstract org.hibernate.criterion.Criterion getCriterion()
Filter
getCriterion 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 | ||||||||