@Component(value="cuba_ConditionJpqlGenerator")
public class ConditionJpqlGenerator
extends java.lang.Object
processQuery(String, Condition)
method.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
Constructor and Description |
---|
ConditionJpqlGenerator() |
Modifier and Type | Method and Description |
---|---|
protected void |
addJoinStatements(QueryTransformer transformer,
Condition condition) |
protected java.lang.String |
generateWhere(Condition condition) |
java.lang.String |
processQuery(java.lang.String query,
Condition condition)
Returns a JPQL query modified according to the given tree of conditions.
|
public static final java.lang.String NAME
public java.lang.String processQuery(java.lang.String query, @Nullable Condition condition)
query
- JPQL querycondition
- root condition. If null, the query is returned as is.protected void addJoinStatements(QueryTransformer transformer, Condition condition)
protected java.lang.String generateWhere(Condition condition)