public class DefaultObjectFilter extends AbstractJoSQLFilter
accept(Object) method is determined by executing the
JoSQL WHERE clause passed in. A "wrapper" is created around the WHERE clause to make it
a fully-formed JoSQL statement.badQuery, exp, q| 构造器和说明 |
|---|
DefaultObjectFilter(Query q) |
DefaultObjectFilter(String w,
Class c)
Init this filter with the where clause, note the class specified will be used in the
FROM clause.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Object o)
Apply the WHERE clause of the statement to the object passed in.
|
Class |
getExpectedClass()
Get the class the Query expects to operate on.
|
clearException, getException, getQuery, setQuery, setQuerypublic DefaultObjectFilter(String w, Class c) throws QueryParseException
w - The where clause.c - The class of the objects to filter.QueryParseException - If there is an issue with the parsing of the query.public DefaultObjectFilter(Query q) throws IllegalStateException, QueryParseException
public boolean accept(Object o)
AbstractJoSQLFilter.getException().accept 在类中 AbstractJoSQLFiltero - The object to evaluate the WHERE on.true if the WHERE clause evaluates to true.public Class getExpectedClass()
getExpectedClass 在类中 AbstractJoSQLFilterCopyright © 2021. All rights reserved.