public interface PredicateAliasResolver
| Modifier and Type | Method and Description |
|---|---|
com.querydsl.core.types.Predicate |
resolveOperation(com.querydsl.core.types.Operation<?> operation,
List<JoinDescription> joins,
Set<com.querydsl.core.types.Path<?>> usedAliases)
Resolves all correct paths used in specified
operation |
<T> com.querydsl.core.types.Path<T> |
resolvePath(com.querydsl.core.types.Path<T> path,
Map<AnnotatedElement,List<JoinDescription>> classToJoin,
Set<com.querydsl.core.types.Path<?>> usedAliases)
If alias from
path is not present in usedAliases, try to find it in joins. |
com.querydsl.core.types.Predicate |
resolvePredicate(com.querydsl.core.types.Predicate predicate,
List<JoinDescription> joins,
Set<com.querydsl.core.types.Path<?>> usedAliases)
Resolves all correct paths used in specified
predicate |
com.querydsl.core.types.Predicate resolvePredicate(com.querydsl.core.types.Predicate predicate,
List<JoinDescription> joins,
Set<com.querydsl.core.types.Path<?>> usedAliases)
predicatepredicate - original predicatejoins - all query joinsusedAliases - paths that are present in joinsresolvePath(Path, Map, Set)com.querydsl.core.types.Predicate resolveOperation(com.querydsl.core.types.Operation<?> operation,
List<JoinDescription> joins,
Set<com.querydsl.core.types.Path<?>> usedAliases)
operationoperation - original operationjoins - all query joinsusedAliases - paths that are present in joinsresolvePath(Path, Map, Set)<T> com.querydsl.core.types.Path<T> resolvePath(com.querydsl.core.types.Path<T> path,
Map<AnnotatedElement,List<JoinDescription>> classToJoin,
Set<com.querydsl.core.types.Path<?>> usedAliases)
path is not present in usedAliases, try to find it in joins.
If unambiguous alias is found, return rebuilt Path with corresponding alias.
It other words, it allows to use QStatus.status.some... instead of J#path(QStatusParent.parent, QStatus.status
(when target path is unambiguous, i.e. exactly one join with java type Status is present)
T - anypath - original pathclassToJoin - java type to present joinsusedAliases - paths that are present in joinsCopyright © 2018. All rights reserved.