Class SQLJoinField

java.lang.Object
no.sikt.graphitron.definitions.sql.SQLJoinField
All Implemented Interfaces:
Comparable<SQLJoinField>
Direct Known Subclasses:
SQLJoinOnCondition, SQLJoinOnKey

public abstract class SQLJoinField extends Object implements Comparable<SQLJoinField>
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 Details

    • SQLJoinField

      public SQLJoinField()
  • Method Details

    • getOrderingPriority

      public int getOrderingPriority()
      Returns:
      Ordering priority for this type of join condition.
    • compareTo

      public int compareTo(@NotNull @NotNull SQLJoinField o)
      Specified by:
      compareTo in interface Comparable<SQLJoinField>
    • getMethodCallName

      public abstract String getMethodCallName()
      Returns:
      The name of the jOOQ method that corresponds to this condition.
    • toJoinString

      public abstract no.sikt.graphitron.javapoet.CodeBlock toJoinString(JoinListSequence joinSequence, String aliasName)
      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.