Class SQLJoinOnKey

java.lang.Object
no.sikt.graphitron.definitions.sql.SQLJoinField
no.sikt.graphitron.definitions.sql.SQLJoinOnKey
All Implemented Interfaces:
Comparable<SQLJoinField>

public class SQLJoinOnKey extends SQLJoinField
SQL join condition which joins on a single key generated by jOOQ, referred to by name.
  • Constructor Details

    • SQLJoinOnKey

      public SQLJoinOnKey(JOOQMapping key)
      Parameters:
      key - The name of a key generated by jOOQ.
  • Method Details

    • getKey

      public JOOQMapping getKey()
      Returns:
      jOOQ name of the key.
    • getOrderingPriority

      public int getOrderingPriority()
      Overrides:
      getOrderingPriority in class SQLJoinField
      Returns:
      Ordering priority for this type of join condition.
    • getMethodCallName

      public String getMethodCallName()
      Specified by:
      getMethodCallName in class SQLJoinField
      Returns:
      The name of the jOOQ method that corresponds to this condition.
    • toJoinString

      public CodeBlock toJoinString(JoinListSequence joinSequence, String aliasName)
      Specified by:
      toJoinString in class SQLJoinField
      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.