- Type Parameters:
Q- The type of the query statement, usually aString.
- All Known Implementing Classes:
ExpressionCriteriaFactory
public interface CriteriaFactory<Q>
The
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 ExpressionCriteriaFactory
implements a CriteriaFactory being capable of
parsing the above query.- Version:
- $Id: $Id
- Author:
- steiner
-
Method Summary
-
Method Details
-
fromQuery
Parsed the given query and constructs aCriteria(tree). Whether aCriteriaNodeor just aCriteriaLeafis returned depends on the complexity of the query.- Parameters:
aQuery- The query to be parsed.- Returns:
- A
Criteria(tree) representing the query as an object orientedCriteriatree structure. - Throws:
ParseException- Thrown in case the query could not be parsed.
-