join<Tc, TDao extends Tc> method

TripleJoinQuerySource<Ta, Tb, Tc> join<Tc, TDao extends Tc>(
  1. DataBean<TDao> other,
  2. DataField mainField,
  3. DataField otherField, {
  4. CompareType type = CompareType.equals,
})

Create JoinedQuerySource with this and the following join.

This enabled chaining of join() calls.

Implementation

TripleJoinQuerySource<Ta, Tb, Tc> join<Tc, TDao extends Tc>(
    DataBean<TDao> other, DataField mainField, DataField otherField,
    {CompareType type = CompareType.equals}) {
  return TripleJoinQuerySource<Ta, Tb, Tc>(
    main,
    joinB,
    BeanJoin<TDao>(other, mainField, type, otherField),
  );
}