Class JoinPath

java.lang.Object
io.micronaut.data.model.query.JoinPath

public class JoinPath extends Object
A join path represents a path, association and join type for performing a join with a query.
Since:
1.0.0
Author:
graemerocher
See Also:
  • Constructor Details

    • JoinPath

      public JoinPath(@NonNull @NonNull String path, @NonNull @NonNull Association[] associationPath, @NonNull Join.Type joinType, @Nullable @Nullable String alias)
      Default constructor.
      Parameters:
      path - The path
      associationPath - The association
      joinType - The join type
      alias - The alias
  • Method Details

    • getAlias

      public Optional<String> getAlias()
      The alias for the join path.
      Returns:
      The optional alias
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAssociation

      @NonNull public @NonNull Association getAssociation()
      Returns:
      The association
    • getAssociationPath

      public Association[] getAssociationPath()
      Returns:
      The association path.
    • getPath

      @NonNull public @NonNull String getPath()
      Returns:
      The association path
    • getJoinType

      @NonNull public Join.Type getJoinType()
      Returns:
      The join type
    • equals

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

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

      public static JoinPath of(Association... associationPath)
      Create a join path from the association path.
      Parameters:
      associationPath - The association path
      Returns:
      The join path
    • of

      public static JoinPath of(String alias, Association... associationPath)
      Create a join path from the association path.
      Parameters:
      alias - The alias to use
      associationPath - The association path
      Returns:
      The join path