ScalarExpression targetElementExpr =
targetElementMapping.newScalarExpression(stmt, stmt.getMainTableExpression());
targetSubElementTypeExpr = targetMapping.newScalarExpression(stmt, teTargetSubElementType);
stmt.leftOuterJoin(targetElementExpr,targetSubElementTypeExpr, teTargetSubElementType, true);
ScalarExpression seTargetSubElementType = targetMapping.newScalarExpression(targetQS, teTargetSubElementType);
stmt.andCondition(new NullLiteral(stmt).eq(seTargetSubElementType));
}
}
}
}