public interface Filter
Filter interface.
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.
|
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.
|
String getSql()
String
object.String getParamSql()
String
object.int bindParam(PreparedStatement ps, int parameterIndex) throws SQLException
ps
- a PreparedStatement
object.parameterIndex
- a int.SQLException
- if any.String getDescription()
Some examples:
String
object.String getTextDescription()
Some examples (corresponding to the examples in
getDescription
):
String
object.org.hibernate.criterion.Criterion getCriterion()
Copyright © 2018. All rights reserved.