public interface WhereFilter
extends com.holonplatform.core.query.QueryFilter
QueryFilter which uses a SQL where predicate to express query filter conditions.
This filter supports query parameters, which must be expressed in SQL statement using the default ?
placeholder. The parameter placeholders will be replaced with the values obtained from the getParameters()
method.
com.holonplatform.core.query.QueryFilter.CompositeQueryFilter, com.holonplatform.core.query.QueryFilter.QueryFilterResolver<T extends com.holonplatform.core.query.QueryFilter>, com.holonplatform.core.query.QueryFilter.QueryFilterSupport<C extends com.holonplatform.core.query.QueryFilter.QueryFilterSupport<C>>| Modifier and Type | Method and Description |
|---|---|
static WhereFilter |
create(String sql,
Object... parameters)
Create a
WhereFilter using given sql predicate. |
List<Object> |
getParameters()
Get the optional sql parameter values.
|
String |
getSQL()
Get the where predicate as sql.
|
allOf, allOf, and, anyOf, anyOf, between, contains, endsWith, eq, eq, goe, goe, greaterThan, greaterThan, gt, gt, in, in, in, isNotNull, isNull, lessThan, lessThan, loe, loe, lt, lt, neq, neq, nin, nin, nin, not, not, or, startsWithString getSQL()
NOTE: The WHERE clause string should not be included.
List<Object> getParameters()
static WhereFilter create(String sql, Object... parameters)
WhereFilter using given sql predicate.sql - Filter sql predicate (not null)parameters - Optional parameters. The parameter values will be used to replace the SQL statement
? placeholders, in the order they are given.WhereFilterCopyright © 2019 The Holon Platform. All rights reserved.