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, waitcreateallOf, 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, startsWithpublic DefaultWhereFilter(String sql)
sql - The SQL filter predicatepublic String getSQL()
WhereFilter
NOTE: The WHERE clause string should not be included.
getSQL in interface WhereFilterpublic List<Object> getParameters()
WhereFiltergetParameters in interface WhereFilterpublic 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.Expressioncom.holonplatform.core.Expression.InvalidExpressionExceptionCopyright © 2019 The Holon Platform. All rights reserved.