QueryParser
interface, which defines a component that can parse a query represented
in a specific language and produce the corresponding abstract query model
representation.See: Description
Interface | Description |
---|---|
QueryParser |
The basic interface defining a component that is able to parse a string query into a
QueryCommand . |
Class | Description |
---|---|
BasicSqlQueryParser |
A
QueryParser implementation that parses a subset of SQL select and set queries. |
BasicSqlQueryParser.SqlTokenizer |
A
TokenStream.Tokenizer implementation that parses words, quoted phrases, comments, and
symbols. |
FullTextSearchParser |
A
QueryParser implementation that parses a full-text search expression. |
FullTextSearchParser.TermTokenizer |
A basic
TokenStream.Tokenizer implementation that ignores whitespace but includes tokens for individual symbols, the period
('.'), single-quoted strings, double-quoted strings, whitespace-delimited words, and optionally comments. |
JcrQomQueryParser |
A parser for the JCR Query Object Model language.
|
JcrSql2QueryParser |
An specialization of the
BasicSqlQueryParser that uses a different language name that matches the JCR 2.0
specification. |
JcrSqlQueryParser |
Parser for JCR-SQL queries that produces
abstract query model (AQM) objects. |
JcrSqlQueryParser.JoinableSources | |
QueryParsers |
A thread-safe collection of
QueryParser implementations that can be used to parse queries by language. |
Exception | Description |
---|---|
InvalidQueryException |
An exception signalling that a query is invalid (but typically well-formed)
|
QueryParser
interface, which defines a component that can parse a query represented
in a specific language and produce the corresponding abstract query model
representation.
Several parsers are provided, including one that parses a subset of SQL and another that parses the full-text search expressions. However, other query parsers can easily be created and used.
Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.