Constructor and Description |
---|
SituationFilter(boolean situation) |
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.
|
boolean |
equals(Object o) |
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.
|
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.
|
int |
hashCode() |
public static final String TYPE
public String getSql()
Filter
public String getParamSql()
Filter
getParamSql
in interface Filter
String
object.public int bindParam(PreparedStatement ps, int parameterIndex) throws SQLException
Filter
bindParam
in interface Filter
ps
- a PreparedStatement
object.parameterIndex
- a int.SQLException
- if any.public String getDescription()
Filter
Some examples:
getDescription
in interface Filter
String
object.public String getTextDescription()
Filter
Some examples (corresponding to the examples in
getDescription
):
getTextDescription
in interface Filter
String
object.public org.hibernate.criterion.Criterion getCriterion()
Filter
getCriterion
in interface Filter
Copyright © 2020. All rights reserved.