Class SQLJoinField
java.lang.Object
no.sikt.graphitron.definitions.sql.SQLJoinField
- All Implemented Interfaces:
Comparable<SQLJoinField>
- Direct Known Subclasses:
SQLJoinOnCondition,SQLJoinOnKey
Abstraction that allows to apply different join conditions more smoothly.
Join conditions are ordered such that the conditions appear in the order required by jOOQ.
The limitation is that there can be only one "onKey" condition, and it must be called first, before any "on" conditions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(@NotNull SQLJoinField o) abstract Stringintabstract CodeBlocktoJoinString(JoinListSequence joinSequence, String aliasName)
-
Constructor Details
-
SQLJoinField
public SQLJoinField()
-
-
Method Details
-
getOrderingPriority
public int getOrderingPriority()- Returns:
- Ordering priority for this type of join condition.
-
compareTo
- Specified by:
compareToin interfaceComparable<SQLJoinField>
-
getMethodCallName
- Returns:
- The name of the jOOQ method that corresponds to this condition.
-
toJoinString
- Parameters:
joinSequence- The source from which the join is originating. In other words, the left side of the join.aliasName- The name of the table alias to be used for this particular join statement.- Returns:
- A CodeBlock that contains a complete condition statement.
-