CriteriaFactory<String>
public class ExpressionCriteriaFactoryImpl extends Object implements CriteriaFactory<String>
CriteriaFactory
which is capable
of parsing an expression such as the following one:
( ( ( City = 'Berlin' ) OR ( City = 'Munich' ) ) AND ( Surname = 'Miller' )
).Constructor | Description |
---|---|
ExpressionCriteriaFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
Criteria |
fromQuery(String aQuery) |
Parsed the given query and constructs a
Criteria (tree). |
public Criteria fromQuery(String aQuery) throws ParseException
Criteria
(tree). Whether a
CriteriaNode
or just a
CriteriaLeaf
is returned depends on the
complexity of the query.fromQuery
in interface CriteriaFactory<String>
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 © 2018. All rights reserved.