Class JoinPath
java.lang.Object
io.micronaut.data.model.query.JoinPath
A join path represents a path, association and join type for performing a join with a query.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Constructor Summary
ConstructorsConstructorDescriptionJoinPath(String path, Association[] associationPath, Join.Type joinType, @Nullable String alias) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAlias()The alias for the join path.getPath()inthashCode()static JoinPathof(Association... associationPath) Create a join path from the association path.static JoinPathof(String alias, Association... associationPath) Create a join path from the association path.toString()Create a new join path with an alias.
-
Constructor Details
-
JoinPath
public JoinPath(String path, Association[] associationPath, Join.Type joinType, @Nullable String alias) Default constructor.- Parameters:
path- The pathassociationPath- The associationjoinType- The join typealias- The alias
-
-
Method Details
-
withAlias
-
getAlias
-
toString
-
getAssociation
- Returns:
- The association
-
getLeadingAssociations
- Returns:
- The association leading to this association
-
getAssociationPath
- Returns:
- The association path.
-
getPath
- Returns:
- The association path
-
getJoinType
- Returns:
- The join type
-
equals
-
hashCode
-
of
Create a join path from the association path.- Parameters:
associationPath- The association path- Returns:
- The join path
-
of
Create a join path from the association path.- Parameters:
alias- The alias to useassociationPath- The association path- Returns:
- The join path
-