public class HQLFilterOperation extends Object implements FilterOperation<String>
| Modifier and Type | Class and Description |
|---|---|
class |
HQLFilterOperation.HQLQueryVisitor
Filter expression visitor which builds an HQL query.
|
| Constructor and Description |
|---|
HQLFilterOperation() |
| Modifier and Type | Method and Description |
|---|---|
String |
apply(FilterExpression filterExpression) |
String |
apply(FilterExpression filterExpression,
boolean prefixWithType) |
String |
apply(FilterPredicate filterPredicate) |
String |
apply(FilterPredicate filterPredicate,
boolean prefixWithType)
Transforms a filter predicate into a HQL query fragment.
|
String |
applyAll(Set<FilterPredicate> filterPredicates) |
public String apply(FilterPredicate filterPredicate)
apply in interface FilterOperation<String>public String apply(FilterPredicate filterPredicate, boolean prefixWithType)
filterPredicate - The predicate to transform.prefixWithType - Whether or not to append the entity type to the predicate.
This is useful for table aliases referenced in HQL for some kinds of joins.public String applyAll(Set<FilterPredicate> filterPredicates)
applyAll in interface FilterOperation<String>public String apply(FilterExpression filterExpression)
public String apply(FilterExpression filterExpression, boolean prefixWithType)
Copyright © 2015–2017. All rights reserved.