Package cz.encircled.joiner.util
Class JoinerUtils
java.lang.Object
cz.encircled.joiner.util.JoinerUtils
- Author:
- Vlad on 29-Dec-16.
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<com.querydsl.core.types.Path<?>>collectPredicatePaths(com.querydsl.core.types.Expression<?> expression) static <T extends com.querydsl.core.types.EntityPath<?>>
TgetDefaultPath(com.querydsl.core.types.dsl.CollectionPathBase<?, ?, ?> path) Find default path of an entity (e.g.static <T extends com.querydsl.core.types.EntityPath<?>>
TgetDefaultPath(Class<T> qClass) Find default path of an entity (e.g.static com.querydsl.core.types.EntityPath<?>getLastElementPath(com.querydsl.core.types.EntityPath<?> entityPath)
-
Method Details
-
collectPredicatePaths
public static List<com.querydsl.core.types.Path<?>> collectPredicatePaths(com.querydsl.core.types.Expression<?> expression) -
getDefaultPath
Find default path of an entity (e.g. QUser.user for QUser class) -
getDefaultPath
public static <T extends com.querydsl.core.types.EntityPath<?>> T getDefaultPath(com.querydsl.core.types.dsl.CollectionPathBase<?, ?, ?> path) Find default path of an entity (e.g. QUser.user for QUser class) -
getLastElementPath
public static com.querydsl.core.types.EntityPath<?> getLastElementPath(com.querydsl.core.types.EntityPath<?> entityPath) - Parameters:
entityPath- entity path, possibly with parent. i.e. QUser.user.phone- Returns:
- path for the last child element, i.e. QPhone for the QUser.user.phone
-