Class SqlJoinClause

java.lang.Object
org.litebridgedb.orm.api.select.impl.AbstractJoinClause<Row,SqlJoinConditionClause,SqlJoinConditionClauseTerminal,SqlSelectSpec,SqlJoinSpec>
org.litebridgedb.orm.api.sql.SqlJoinClause
All Implemented Interfaces:
org.litebridgedb.orm.api.select.JoinClause<Row,SqlJoinConditionClause,SqlJoinConditionClauseTerminal>

public final class SqlJoinClause extends org.litebridgedb.orm.api.select.impl.AbstractJoinClause<Row,SqlJoinConditionClause,SqlJoinConditionClauseTerminal,SqlSelectSpec,SqlJoinSpec>
  • Constructor Details

    • SqlJoinClause

      public SqlJoinClause(SqlJoinSpec joinSpec, org.litebridgedb.orm.api.select.impl.AbstractSelector<Row,SqlSelectSpec> delegate)
  • Method Details

    • on

      public SqlJoinConditionClause on(String column)
      Adds a join ON condition to the current join clause based on the specified column. The join condition constrains the relationship between the tables being joined.
      Parameters:
      column - the name of the column to be used in the join condition
      Returns:
      an instance of the join condition clause to allow further configuration
    • using

      public SqlJoinConditionClauseTerminal using(String column)
      Adds a join USING condition to the current join clause using the specified column. This method simplifies the join condition by specifying a single column that is shared between two tables in the join.
      Parameters:
      column - the name of the column to be used for the join condition
      Returns:
      an instance of the terminal join condition clause to finalize the join conditions