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>
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! TheExpressionCriteriaFactoryImpl
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 java.text.ParseException
Parsed the given query and constructs aCriteria
(tree). Whether aCriteriaNode
or just aCriteriaLeaf
is returned depends on the complexity of the query.
-
-