public class JoSQLFileFilter extends AbstractJoSQLFilter implements FileFilter
badQuery, exp, q| 构造器和说明 |
|---|
JoSQLFileFilter(Query q)
Init this file filter with the query already built and parsed.
|
JoSQLFileFilter(String q)
Init this file filter with the query.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
accept(File f)
Apply the WHERE clause of the statement to the
File passed in. |
boolean |
accept(Object o) |
Class |
getExpectedClass()
Always returns
File. |
clearException, getException, getQuery, setQuery, setQuerypublic JoSQLFileFilter(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 File.public JoSQLFileFilter(Query q) throws IllegalStateException, QueryParseException
q - The query.IllegalStateException - If the Query object has not been parsed.QueryParseException - If the FROM class is not File.public boolean accept(Object o)
accept 在类中 AbstractJoSQLFilterpublic boolean accept(File f)
File 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 File objects).
You can get access to exception by using: AbstractJoSQLFilter.getException().accept 在接口中 FileFilterf - The file to evaluate the WHERE on.true if the WHERE clause evaluates to true.public Class getExpectedClass()
File.getExpectedClass 在类中 AbstractJoSQLFilterCopyright © 2021. All rights reserved.