public class JoSQLLogRecordFilter extends DefaultObjectFilter
| 限定符和类型 | 字段和说明 |
|---|---|
protected Class |
expected |
badQuery, exp, q| 构造器和说明 |
|---|
JoSQLLogRecordFilter(Query q)
Init this filter with the query already built and parsed.
|
JoSQLLogRecordFilter(String q)
Init this filter with the query.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(Object o)
Apply the WHERE clause of the statement to the object passed in.
|
Class |
getExpectedClass()
Always returns
LogRecord. |
boolean |
isLoggable(LogRecord l)
Apply the WHERE clause of the statement to the
LogRecord passed in. |
clearException, getException, getQuery, setQuery, setQueryprotected Class expected
public JoSQLLogRecordFilter(String q) throws QueryParseException
q - The query.QueryParseException - If there is an issue with the parsing of the query,
or if the FROM class is not LogRecord.public JoSQLLogRecordFilter(Query q) throws IllegalStateException, QueryParseException
q - The query.IllegalStateException - If the Query object has not been parsed.QueryParseException - If the FROM class is not LogRecord.public boolean accept(Object o)
DefaultObjectFilterAbstractJoSQLFilter.getException().accept 在类中 DefaultObjectFiltero - The object to evaluate the WHERE on.true if the WHERE clause evaluates to true.public boolean isLoggable(LogRecord l)
LogRecord passed in.
If an exception is thrown by the execution of the WHERE clause the Query
is marked as "dirty" and the where clause is no longer executed on the passed in
files (since it is likely that the WHERE clause will fail for all LogRecord objects).
You can get access to exception by using: AbstractJoSQLFilter.getException().l - The log record to evaluate the WHERE on.true if the WHERE clause evaluates to true.public Class getExpectedClass()
LogRecord.getExpectedClass 在类中 DefaultObjectFilterCopyright © 2021. All rights reserved.