QueryFactory<String>
public class ExpressionQueryFactoryImpl extends Object implements QueryFactory<String>
ExpressionCriteriaFactoryImpl
is capable of
creating query String
instances from
Criteria
instances; the query
String
instances which can be used as parts of SQL
statements.Constructor | Description |
---|---|
ExpressionQueryFactoryImpl() |
Modifier and Type | Method | Description |
---|---|---|
String |
fromCriteria(Criteria aCriteria) |
Generates a query from the provided
Criteria (tree). |
String |
toQuery(IntersectWithCriteria aCriteriaNode,
boolean isCriteriaTreeRoot) |
Generates a query string for the given
CriteriaNode . |
String |
toQuery(LessThanCriteria<?> aCriteriaLeaf,
boolean isCriteriaTreeRoot) |
Generates a query string for the given
CriteriaLeaf . |
public String fromCriteria(Criteria aCriteria)
Criteria
(tree).fromCriteria
in interface QueryFactory<String>
aCriteria
- The Criteria
from which to
generate the query.Criteria
(tree).public String toQuery(IntersectWithCriteria aCriteriaNode, boolean isCriteriaTreeRoot)
CriteriaNode
.aCriteriaNode
- The CriteriaNode
for
which to generate the query.isCriteriaTreeRoot
- True in case the
CriteriaNode
is the root of the
Criteria
tree. Being root means
dedicated handling of the
CriteriaNode
then not being root.CriteriaNode
.public String toQuery(LessThanCriteria<?> aCriteriaLeaf, boolean isCriteriaTreeRoot)
CriteriaLeaf
.aCriteriaLeaf
- The CriteriaLeaf
for
which to generate the query.isCriteriaTreeRoot
- True in case the
CriteriaLeaf
is the root of the
Criteria
tree. Being root means
dedicated handling of the
CriteriaLeaf
then not being root.CriteriaLeaf
.Copyright © 2018. All rights reserved.