public class JoinPath
extends java.lang.Object
QueryModel
Constructor and Description |
---|
JoinPath(java.lang.String path,
Association[] associationPath,
Join.Type joinType,
java.lang.String alias)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.lang.String> |
getAlias()
The alias for the join path.
|
Association |
getAssociation() |
Association[] |
getAssociationPath() |
Join.Type |
getJoinType() |
java.lang.String |
getPath() |
int |
hashCode() |
static JoinPath |
of(Association... associationPath)
Create a join path from the association path.
|
static JoinPath |
of(java.lang.String alias,
Association... associationPath)
Create a join path from the association path.
|
java.lang.String |
toString() |
public JoinPath(@NonNull java.lang.String path, @NonNull Association[] associationPath, @NonNull Join.Type joinType, @Nullable java.lang.String alias)
path
- The pathassociationPath
- The associationjoinType
- The join typealias
- The aliaspublic java.util.Optional<java.lang.String> getAlias()
public java.lang.String toString()
toString
in class java.lang.Object
@NonNull public Association getAssociation()
public Association[] getAssociationPath()
@NonNull public java.lang.String getPath()
@NonNull public Join.Type getJoinType()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static JoinPath of(Association... associationPath)
associationPath
- The association pathpublic static JoinPath of(java.lang.String alias, Association... associationPath)
alias
- The alias to useassociationPath
- The association path