use of jakarta.persistence.criteria.SetJoin in project eclipselink by eclipse-ee4j.
the class CriteriaBuilderImpl method treat.
@Override
public <X, T, E extends T> SetJoin<X, E> treat(SetJoin<X, T> join, Class<E> type) {
SetJoinImpl parentJoin = (SetJoinImpl) join;
SetJoin joinImpl = null;
if (join instanceof BasicSetJoinImpl) {
joinImpl = new BasicSetJoinImpl<X, E>(parentJoin, this.metamodel, type, parentJoin.currentNode.treat(type), parentJoin.getModel(), parentJoin.getJoinType());
} else {
joinImpl = new SetJoinImpl<X, E>((Path) join, this.metamodel.managedType(type), this.metamodel, type, parentJoin.currentNode.treat(type), parentJoin.getModel(), parentJoin.getJoinType());
}
parentJoin.joins.add(joinImpl);
((FromImpl) joinImpl).isJoin = parentJoin.isJoin;
parentJoin.isJoin = false;
return joinImpl;
}