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>
-
Field Summary
Fields inherited from class org.litebridgedb.orm.api.select.impl.AbstractJoinClause
delegate, joinSpec -
Constructor Summary
ConstructorsConstructorDescriptionSqlJoinClause(SqlJoinSpec joinSpec, org.litebridgedb.orm.api.select.impl.AbstractSelector<Row, SqlSelectSpec> delegate) -
Method Summary
Modifier and TypeMethodDescriptionAdds a join ON condition to the current join clause based on the specified column.Adds a join USING condition to the current join clause using the specified column.
-
Constructor Details
-
SqlJoinClause
public SqlJoinClause(SqlJoinSpec joinSpec, org.litebridgedb.orm.api.select.impl.AbstractSelector<Row, SqlSelectSpec> delegate)
-
-
Method Details
-
on
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
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
-