Package org.modeshape.graph.query.parse

This package defines the 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 Summary
QueryParser The basic interface defining a component that is able to parse a string query into a QueryCommand.
 

Class Summary
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.
QueryParsers A thread-safe collection of QueryParser implementations that can be used to parse queries by language.
SqlQueryParser A QueryParser implementation that parses a subset of SQL select and set queries.
SqlQueryParser.SqlTokenizer A TokenStream.Tokenizer implementation that parses words, quoted phrases, comments, and symbols.
 

Exception Summary
InvalidQueryException An exception signalling that a query is invalid (but typically well-formed)
 

Package org.modeshape.graph.query.parse Description

This package defines the 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-2010 JBoss, a division of Red Hat. All Rights Reserved.