java.lang.Object
io.github.blyznytsiaorg.bibernate.dao.jdbc.dsl.join.JoinClause

public class JoinClause extends Object
Represents a SQL JOIN clause with information about the joined table, the ON condition, and the type of JOIN (INNER, LEFT, RIGHT, FULL).
Since:
1.0
Author:
Blyzhnytsia Team
  • Field Details

    • joinedTable

      private final String joinedTable
      The name of the table to be joined.
    • onCondition

      private final String onCondition
      The ON condition specifying how the tables should be joined.
    • joinType

      private final JoinType joinType
      The type of JOIN (INNER, LEFT, RIGHT, FULL).
  • Constructor Details

    • JoinClause

      public JoinClause(String joinedTable, String onCondition, JoinType joinType)
      Constructs a new JoinClause with the specified parameters.
      Parameters:
      joinedTable - The name of the table to be joined.
      onCondition - The ON condition specifying how the tables should be joined.
      joinType - The type of JOIN (INNER, LEFT, RIGHT, FULL).
  • Method Details

    • toString

      public String toString()
      Returns a string representation of the JOIN clause.
      Overrides:
      toString in class Object
      Returns:
      A string containing the JOIN clause in the format "JOIN_TYPE JOIN joinedTable ON onCondition".