java.lang.Object
org.litebridge.orm.api.select.ast.JoinNode
- All Implemented Interfaces:
QueryNode
Represents a JOIN clause metadata in the query AST.
-
Constructor Summary
ConstructorsConstructorDescriptionJoinNode(@Nullable QueryNode previous, String type, @Nullable Class<?> dtoClass, @Nullable Class<?> sourceDtoClass, @Nullable String tableName) Constructs a newJoinNode.JoinNode(@Nullable QueryNode previous, String type, @Nullable Class<?> dtoClass, @Nullable String tableName) Constructs a newJoinNodewithout a source DTO class. -
Method Summary
Modifier and TypeMethodDescription@Nullable QueryNodeReturns the join condition node.@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 Class<?> Returns the source DTO class.@Nullable StringReturns the name of the table being joined.toString()type()Returns the type of join.withCondition(@Nullable QueryNode condition) Sets the join condition node.
-
Constructor Details
-
JoinNode
public JoinNode(@Nullable QueryNode previous, String type, @Nullable Class<?> dtoClass, @Nullable Class<?> sourceDtoClass, @Nullable String tableName) Constructs a newJoinNode.- Parameters:
previous- the previous node in the chaintype- the type of join (e.g., INNER, LEFT)dtoClass- the DTO class being joinedsourceDtoClass- the source DTO classtableName- the name of the table being joined
-
JoinNode
public JoinNode(@Nullable QueryNode previous, String type, @Nullable Class<?> dtoClass, @Nullable String tableName) Constructs a newJoinNodewithout a source DTO class.- Parameters:
previous- the previous node in the chaintype- the type of joindtoClass- the DTO class being joinedtableName- 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
-
sourceDtoClass
Returns the source DTO class.- Returns:
- the source DTO class
-
tableName
Returns the name of the table being joined.- Returns:
- the table name
-
condition
Returns the join condition node.- Returns:
- the condition node
-
withCondition
Sets the join condition node.- Parameters:
condition- the condition node to set- Returns:
- this join node instance
-
equals
-
hashCode
public int hashCode() -
toString
-