Q - The type of the query statement, usually a String.public interface CriteriaFactory<Q>
CriteriaFactory constructs a Criteria (tree) from the
provided query. The syntax of the query is implementation specific and may
look as follows:
( ( ( City = 'Berlin' ) OR ( City = 'Munich' ) ) AND ( Surname = 'Miller' ) )
CAUTION: The syntax supported for the query statement is implementation depended!
The ExpressionCriteriaFactoryImpl implements a
CriteriaFactory being capable of parsing the above query.
| Modifier and Type | Method and Description |
|---|---|
Criteria |
fromQuery(Q aQuery)
Parsed the given query and constructs a
Criteria (tree). |
Criteria fromQuery(Q aQuery) throws ParseException
Criteria (tree). Whether
a CriteriaNode or just a CriteriaLeaf is returned depends
on the complexity of the query.aQuery - The query to be parsed.Criteria (tree) representing the query as an object
oriented Criteria tree structure.ParseException - Thrown in case the query could not be parsed.Copyright © 2015. All rights reserved.