Package io.micronaut.data.model.query
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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionJoinPath(String path, Association[] associationPath, Join.Type joinType, 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()
-
Constructor Details
-
JoinPath
public JoinPath(@NonNull String path, @NonNull Association[] associationPath, @NonNull Join.Type joinType, @Nullable String alias) Default constructor.- Parameters:
path- The pathassociationPath- The associationjoinType- The join typealias- The alias
-
-
Method Details
-
getAlias
The alias for the join path.- Returns:
- The optional alias
-
toString
-
getAssociation
- Returns:
- The association
-
getAssociationPath
- Returns:
- The association path.
-
getPath
- Returns:
- The association path
-
getJoinType
- Returns:
- The join type
-
equals
-
hashCode
public int 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
-