Class JoinerUtils

java.lang.Object
cz.encircled.joiner.util.JoinerUtils

public final class JoinerUtils extends Object
Author:
Vlad on 29-Dec-16.
  • Method Summary

    Modifier and Type
    Method
    Description
    static List<com.querydsl.core.types.Path<?>>
    collectPredicatePaths(com.querydsl.core.types.Expression<?> expression)
     
    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.
    static <T extends com.querydsl.core.types.EntityPath<?>>
    T
    getDefaultPath(Class<T> qClass)
    Find default path of an entity (e.g.
    static com.querydsl.core.types.EntityPath<?>
    getLastElementPath(com.querydsl.core.types.EntityPath<?> entityPath)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • collectPredicatePaths

      public static List<com.querydsl.core.types.Path<?>> collectPredicatePaths(com.querydsl.core.types.Expression<?> expression)
    • getDefaultPath

      public static <T extends com.querydsl.core.types.EntityPath<?>> T getDefaultPath(Class<T> qClass)
      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