public class DefaultWhereFilter extends Object implements WhereFilter
WhereFilter
implementation.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>>
Constructor and Description |
---|
DefaultWhereFilter(String sql)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Object parameter)
Add a parameter value.
|
List<Object> |
getParameters()
Get the optional sql parameter values.
|
String |
getSQL()
Get the where predicate as sql.
|
String |
toString() |
void |
validate() |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
create
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, startsWith
public DefaultWhereFilter(String sql)
sql
- The SQL filter predicatepublic String getSQL()
WhereFilter
NOTE: The WHERE
clause string should not be included.
getSQL
in interface WhereFilter
public List<Object> getParameters()
WhereFilter
getParameters
in interface WhereFilter
public void addParameter(Object parameter)
parameter
- Parameter value to add (not null)public void validate() throws com.holonplatform.core.Expression.InvalidExpressionException
validate
in interface com.holonplatform.core.Expression
com.holonplatform.core.Expression.InvalidExpressionException
Copyright © 2019 The Holon Platform. All rights reserved.