CorrelatedInSelectPlanpublic class CorrelatedInSelectPlan extends CorrelatedSelectPlan Implements the select plan for In-Subqueries. |
Methods Summary |
---|
protected void | doCorrelatedJoin()No-Op. No join condition is added for correlated in selects,
as the queries are joined on the selected fields.
| protected void | processFields()Add the fields joining the subquery to the list of selected fields.
The joined table is added as a side-effect.
List subqueryFieldsToSelect;
if (parentField.useJoinTable()) {
subqueryFieldsToSelect = parentField.getAssocLocalFields();
} else {
subqueryFieldsToSelect = parentField.getForeignFields();
}
// Add the columns and tables to be selected in the subquery
for (int i = 0; i < subqueryFieldsToSelect.size(); i++) {
addColumn((LocalFieldDesc) subqueryFieldsToSelect.get(i));
}
|
|