java.lang.Object
org.litebridge.orm.engine.ast.JoinNode
- All Implemented Interfaces:
QueryNode
Represents a JOIN clause metadata in the query AST.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringalias()@Nullable QueryNodeReturns the join condition node.@Nullable Class<?> @Nullable Class<?> dtoClass()Returns the DTO class being joined.booleaninthashCode()@Nullable QueryNodeprevious()Returns the previous node in the chain, ornullif this is the root node.@Nullable QueryNodevoidsetCondition(@Nullable QueryNode condition) Sets the join condition node.@Nullable Stringtable()Returns the name of the table being joined.toString()type()Returns the type of join.
-
Constructor Details
-
JoinNode
public JoinNode(@Nullable QueryNode previous, Join.JoinType type, @Nullable Class<?> dtoClass, @Nullable Class<?> contextDtoClass, @Nullable String table, @Nullable QueryNode queryNode, @Nullable String alias) Constructs a newJoinNode.- Parameters:
previous- the previous node in the chaintype- the type of join (e.g., INNER, LEFT)dtoClass- the DTO class being joinedtable- the name of the table being joined
-
-
Method Details
-
previous
Description copied from interface:QueryNodeReturns the previous node in the chain, ornullif this is the root node. -
type
Returns the type of join.- Returns:
- the join type
-
dtoClass
Returns the DTO class being joined.- Returns:
- the DTO class
-
contextDtoClass
-
table
Returns the name of the table being joined.- Returns:
- the table name
-
queryNode
-
alias
-
condition
Returns the join condition node.- Returns:
- the condition node
-
setCondition
Sets the join condition node.- Parameters:
condition- the condition node to set
-
equals
-
hashCode
public int hashCode() -
toString
-