Class CorrelatedSelectPlan
- java.lang.Object
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
-
- com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.CorrelatedSelectPlan
-
- Direct Known Subclasses:
CorrelatedExistSelectPlan
,CorrelatedInSelectPlan
public abstract class CorrelatedSelectPlan extends SelectQueryPlan
Implements the select plan for correlated subqueries.- Author:
- Mitesh Meswani, Markus Fuchs
-
-
Field Summary
Fields Modifier and Type Field Description protected SelectQueryPlan
parentPlan
The parent plan for this subquery-
Fields inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
constraint, MULTILEVEL_PREFETCH_PROPERTY, options, parentField, ST_C_BUILT, ST_OC_BUILT
-
Fields inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
ACT_DELETE, ACT_INSERT, ACT_NOOP, ACT_SELECT, ACT_UPDATE, action, config, messages, ST_BUILT, statements, status, store, tables
-
-
Constructor Summary
Constructors Constructor Description CorrelatedSelectPlan(RetrieveDesc desc, SQLStoreManager store, ForeignFieldDesc parentField, SelectQueryPlan parentPlan)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addQueryTables(ArrayList columnList, ClassDesc config)
Adds the query tables corresponding to the columns incolumnList
.protected abstract void
doCorrelatedJoin()
Must be implemented by the sub classes.protected void
processConstraints()
The constraints for correlated subqueries are added here.-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.SelectQueryPlan
addColumn, addJoinConstraint, addTable, build, getConstraint, getResult, newInstance, newStatement, processFields, processOrderConstraints, processStatements
-
Methods inherited from class com.sun.jdo.spi.persistence.support.sqlstore.sql.generator.QueryPlan
addQueryTable, addQueryTable, addQueryTables, addStatement, createStatement, findQueryTable, findQueryTable, getAction, getConfig, getStatement, getStatements
-
-
-
-
Field Detail
-
parentPlan
protected SelectQueryPlan parentPlan
The parent plan for this subquery
-
-
Constructor Detail
-
CorrelatedSelectPlan
public CorrelatedSelectPlan(RetrieveDesc desc, SQLStoreManager store, ForeignFieldDesc parentField, SelectQueryPlan parentPlan)
-
-
Method Detail
-
processConstraints
protected void processConstraints()
The constraints for correlated subqueries are added here. The constraints are:- The correlated constraint joining this subquery with the parent plan
- A join constraint if the parent field uses join table
- Overrides:
processConstraints
in classSelectQueryPlan
-
doCorrelatedJoin
protected abstract void doCorrelatedJoin()
Must be implemented by the sub classes.
-
-