ModeShape Distribution 3.7.2.Final

Package org.modeshape.jcr.query.model

The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query.

See: Description

Package org.modeshape.jcr.query.model Description

The Abstract Query Model is a vocabulary that can be used to construct a language-neutral representation of a query. It consists of a family of Java classes each represent the important semantic elements needed to fully define a query. A QueryCommand is the interface that represents a top-level query, with the Query and SetQuery classes being the two implementations.

There are two ways to construct abstract query models. The first is to programmatically construct a query model using the QueryBuilder, which provides a fluent API that makes it easy to create a query with Java code. The second (and more common) approach is to use a QueryParser that parses a query represented in a specific language (like SQL or XPath) and then creates the query's equivalent abstract query model.

The abstract query model classes are immutable, making them very easily shared or reused if that is advantageous.

ModeShape Distribution 3.7.2.Final

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.