Module com.speedment.runtime.join
Interface JoinBuilder1<T0>
-
- Type Parameters:
T0- the first entity type
- All Superinterfaces:
HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>,HasWhere<T0,JoinBuilder1<T0>>
public interface JoinBuilder1<T0> extends HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>, HasWhere<T0,JoinBuilder1<T0>>
Join Builder stage used when only 1 table has been specified so far.- Since:
- 3.1.1
- Author:
- Per Minborg, Emil Forslund
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceJoinBuilder1.AfterJoin<T0,T1>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T1> JoinBuilder2<T0,T1>crossJoin(com.speedment.runtime.config.identifier.TableIdentifier<T1> joinedTable)Adds the providedjoinedTableto the collection of joined tables.<T1> JoinBuilder1.AfterJoin<T0,T1>innerJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)Adds the providedjoinedFieldto the collection of joined column/tables.<T1> JoinBuilder1.AfterJoin<T0,T1>leftJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)Adds the providedjoinedFieldto the collection of joined column/tables.<T1> JoinBuilder1.AfterJoin<T0,T1>rightJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)Adds the providedjoinedFieldto the collection of joined column/tables.
-
-
-
Method Detail
-
innerJoinOn
<T1> JoinBuilder1.AfterJoin<T0,T1> innerJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)
Description copied from interface:HasJoinsAdds the providedjoinedFieldto the collection of joined column/tables. Elements are joined from the table of the providedjoinedFieldusing an INNER JOIN whereby rows from two tables are present only if there is a match between the joining columns. Thus, rows that do not have matches in the joining columns will not be present in the result.- Specified by:
innerJoinOnin interfaceHasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>- Type Parameters:
T1- entity type- Parameters:
joinedField- to add to the current join builder- Returns:
- a builder where the provided
joinedFieldis added
-
leftJoinOn
<T1> JoinBuilder1.AfterJoin<T0,T1> leftJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)
Description copied from interface:HasJoinsAdds the providedjoinedFieldto the collection of joined column/tables. Elements are joined from the table of the providedjoinedFieldusing an LEFT JOIN whereby rows from two tables are present either if there is a match between the joining columns or for each row from previously existing table(s).Unmatched rows will have entities from the table in the given
joinedFieldset tonull- Specified by:
leftJoinOnin interfaceHasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>- Type Parameters:
T1- entity type- Parameters:
joinedField- to add to the current join builder- Returns:
- a builder where the provided
joinedFieldis added
-
rightJoinOn
<T1> JoinBuilder1.AfterJoin<T0,T1> rightJoinOn(com.speedment.runtime.field.trait.HasComparableOperators<T1,?> joinedField)
Description copied from interface:HasJoinsAdds the providedjoinedFieldto the collection of joined column/tables. Elements are joined from the table of the providedjoinedFieldusing an RIGHT JOIN whereby rows from two tables are present either if there is a match between the joining columns or for each row from the table for the providedjoinedField.Unmatched rows will have entities from the table in the given
joinedFieldset tonull- Specified by:
rightJoinOnin interfaceHasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>- Type Parameters:
T1- entity type- Parameters:
joinedField- to add to the current join builder- Returns:
- a builder where the provided
joinedFieldis added
-
crossJoin
<T1> JoinBuilder2<T0,T1> crossJoin(com.speedment.runtime.config.identifier.TableIdentifier<T1> joinedTable)
Description copied from interface:HasJoinsAdds the providedjoinedTableto the collection of joined tables. Elements are joined from the table of the providedjoinedTableusing an CROSS JOIN whereby all combination of rows using all tables(s) are produced.- Specified by:
crossJoinin interfaceHasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>- Type Parameters:
T1- entity type- Parameters:
joinedTable- to add to the current join builder- Returns:
- a builder where the provided
joinedFieldis added
-
-