Package org.refcodes.criteria
Interface CriteriaFactory<Q>
-
- Type Parameters:
Q- The type of the query statement, usually aString.
- All Known Implementing Classes:
ExpressionCriteriaFactoryImpl
public interface CriteriaFactory<Q>TheCriteriaFactoryconstructs 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! TheExpressionCriteriaFactoryImplimplements aCriteriaFactorybeing capable of parsing the above query.- Version:
- $Id: $Id
- Author:
- steiner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CriteriafromQuery(Q aQuery)Parsed the given query and constructs aCriteria(tree).
-
-
-
Method Detail
-
fromQuery
Criteria fromQuery(Q aQuery) throws java.text.ParseException
Parsed the given query and constructs aCriteria(tree). Whether aCriteriaNodeor just aCriteriaLeafis returned depends on the complexity of the query.
-
-