-
- Type Parameters:
Q
- The type of the query statement, usually aString
.
- All Known Implementing Classes:
ExpressionCriteriaFactory
public interface CriteriaFactory<Q>
TheCriteriaFactory
constructs aCriteria
(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! TheExpressionCriteriaFactory
implements aCriteriaFactory
being capable of parsing the above query.- Version:
- $Id: $Id
- Author:
- steiner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Criteria
fromQuery(Q aQuery)
Parsed the given query and constructs aCriteria
(tree).
-
-
-
Method Detail
-
fromQuery
Criteria fromQuery(Q aQuery) throws ParseException
Parsed the given query and constructs aCriteria
(tree). Whether aCriteriaNode
or just aCriteriaLeaf
is 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 orientedCriteria
tree structure. - Throws:
ParseException
- Thrown in case the query could not be parsed.
-
-