T0
- the first entity typepublic interface JoinBuilder1<T0> extends HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>, HasWhere<T0,JoinBuilder1<T0>>
Modifier and Type | Interface and Description |
---|---|
static interface |
JoinBuilder1.AfterJoin<T0,T1> |
Modifier and Type | Method and Description |
---|---|
<T1> JoinBuilder2<T0,T1> |
crossJoin(TableIdentifier<T1> joinedTable)
Adds the provided
joinedTable to the collection of joined tables. |
<T1> JoinBuilder1.AfterJoin<T0,T1> |
innerJoinOn(HasComparableOperators<T1,?> joinedField)
Adds the provided
joinedField to the collection of joined
column/tables. |
<T1> JoinBuilder1.AfterJoin<T0,T1> |
leftJoinOn(HasComparableOperators<T1,?> joinedField)
Adds the provided
joinedField to the collection of joined
column/tables. |
<T1> JoinBuilder1.AfterJoin<T0,T1> |
rightJoinOn(HasComparableOperators<T1,?> joinedField)
Adds the provided
joinedField to the collection of joined
column/tables. |
<T1> JoinBuilder1.AfterJoin<T0,T1> innerJoinOn(HasComparableOperators<T1,?> joinedField)
HasJoins
joinedField
to the collection of joined
column/tables. Elements are joined from the table of the provided
joinedField
using 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.innerJoinOn
in interface HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>
T1
- entity typejoinedField
- to add to the current join builderjoinedField
is added<T1> JoinBuilder1.AfterJoin<T0,T1> leftJoinOn(HasComparableOperators<T1,?> joinedField)
HasJoins
joinedField
to the collection of joined
column/tables. Elements are joined from the table of the provided
joinedField
using 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
joinedField
set to null
leftJoinOn
in interface HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>
T1
- entity typejoinedField
- to add to the current join builderjoinedField
is added<T1> JoinBuilder1.AfterJoin<T0,T1> rightJoinOn(HasComparableOperators<T1,?> joinedField)
HasJoins
joinedField
to the collection of joined
column/tables. Elements are joined from the table of the provided
joinedField
using 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 provided joinedField
.
Unmatched rows will have entities from the table in the given
joinedField
set to null
rightJoinOn
in interface HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>
T1
- entity typejoinedField
- to add to the current join builderjoinedField
is added<T1> JoinBuilder2<T0,T1> crossJoin(TableIdentifier<T1> joinedTable)
HasJoins
joinedTable
to the collection of joined tables.
Elements are joined from the table of the provided joinedTable
using an CROSS JOIN whereby all combination of rows using all
tables(s) are produced.crossJoin
in interface HasJoins<JoinBuilder1.AfterJoin<T0,?>,JoinBuilder2<T0,?>>
T1
- entity typejoinedTable
- to add to the current join builderjoinedField
is addedCopyright © 2018 Speedment, Inc.. All rights reserved.