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 SummaryConstructorsConstructorDescriptionJoinPath(@NonNull String path, @NonNull Association[] associationPath, Join.Type joinType, @Nullable String alias) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionbooleangetAlias()The alias for the join path.@NonNull Association@NonNull StringgetPath()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- 
JoinPathpublic 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- 
getAliasThe 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
- 
hashCodepublic int hashCode()
- 
ofCreate a join path from the association path.- Parameters:
- associationPath- The association path
- Returns:
- The join path
 
- 
ofCreate a join path from the association path.- Parameters:
- alias- The alias to use
- associationPath- The association path
- Returns:
- The join path
 
 
-