Class JoinDescription

java.lang.Object
cz.encircled.joiner.query.join.JoinDescription
All Implemented Interfaces:
JoinRoot

public class JoinDescription extends Object implements JoinRoot
Represents query join. For collection joins - collectionPath is used, for single entity joins - singlePath.

By default, all joins are left fetch joins

Author:
Kisel on 21.01.2016.
  • Constructor Details

    • JoinDescription

      public JoinDescription(com.querydsl.core.types.EntityPath<?> alias)
  • Method Details

    • copy

      public JoinDescription copy()
    • isFetch

      public boolean isFetch()
    • fetch

      public JoinDescription fetch(boolean fetch)
    • on

      public JoinDescription on(com.querydsl.core.types.Predicate on)
    • getOn

      public com.querydsl.core.types.Predicate getOn()
    • getJoinType

      public com.querydsl.core.JoinType getJoinType()
    • getAlias

      public com.querydsl.core.types.EntityPath<?> getAlias()
    • getOriginalAlias

      public com.querydsl.core.types.EntityPath<?> getOriginalAlias()
    • getCollectionPath

      public com.querydsl.core.types.dsl.CollectionPathBase<?,?,?> getCollectionPath()
    • getSingularPath

      public com.querydsl.core.types.EntityPath<?> getSingularPath()
    • singularPath

      public JoinDescription singularPath(com.querydsl.core.types.EntityPath<?> path)
    • collectionPath

      public JoinDescription collectionPath(com.querydsl.core.types.dsl.CollectionPathBase<?,?,?> path)
    • isCollectionPath

      public boolean isCollectionPath()
    • inner

      public JoinDescription inner()
    • left

      public JoinDescription left()
    • right

      public JoinDescription right()
    • nested

      public JoinDescription nested(JoinDescription... joins)
      Add children joins to current join
      Parameters:
      joins - children joins
      Returns:
      current join
    • nested

      public JoinDescription nested(com.querydsl.core.types.EntityPath<?>... paths)
      Add children joins to current join from specified paths
      Parameters:
      paths - children join paths
      Returns:
      current join
    • nested

      public JoinDescription nested(com.querydsl.core.types.dsl.CollectionPathBase<?,?,?>... paths)
      Add children joins to current join from specified paths
      Parameters:
      paths - children join paths
      Returns:
      current join
    • getParent

      public JoinDescription getParent()
    • getChildren

      public Collection<JoinDescription> getChildren()
    • getAllJoins

      public Map<String,JoinDescription> getAllJoins()
      Specified by:
      getAllJoins in interface JoinRoot
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object