|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CollectionStoreQueryable
Interface representation of the querying capabilities of a backing store for a collection. This is part of the JDOQL "expression" design that will be refactored out when the new query engine replaces it.
| Method Summary | |
|---|---|
QueryExpression |
getExistsSubquery(QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier existsTableAlias)
Create a subquery for the given query that selects elements, joining to the owner table. |
QueryExpression |
getSizeSubquery(QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier sizeTableAlias)
Create a subquery for the size of the collection. |
ScalarExpression |
joinElementsTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier collectionTableAlias,
java.lang.Class filteredElementType,
ScalarExpression elementExpr,
DatastoreIdentifier elementTableAlias,
boolean existsQuery)
Method used in queries when contains() has been invoked. |
QueryExpression |
newQueryStatement(StateManager sm,
java.lang.String candidateClass,
DatastoreIdentifier candidateAlias)
Method to return a new Query Statement containing the candidate class. |
ResultObjectFactory |
newResultObjectFactory(StateManager sm,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
Method to return an object factory for processing query statements. |
| Method Detail |
|---|
QueryExpression newQueryStatement(StateManager sm,
java.lang.String candidateClass,
DatastoreIdentifier candidateAlias)
sm - State Manager for the collection.candidateClass - Class of the elements.candidateAlias - Alias for the candidate
ResultObjectFactory newResultObjectFactory(StateManager sm,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
sm - State Manager for the collection.stmt - The Query Statement.ignoreCache - Whether to ignore the cache.useFetchPlan - whether to use the fetch plan to retrieve fields in the same query
QueryExpression getExistsSubquery(QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier existsTableAlias)
parentStmt - Parent query statement for this subqueryownerMapping - Id mapping for the ownerownerTableExpr - Table Expression for the owner that the subquery joins toexistsTableAlias - Alias for this subquery main table
QueryExpression getSizeSubquery(QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier sizeTableAlias)
parentStmt - Parent query statement for this subqueryownerMapping - Id mapping for the ownerownerTableExpr - Table Expression for the owner in the parent statement that the subquery joins tosizeTableAlias - Alias for this subquery main table
ScalarExpression joinElementsTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTableExpr,
DatastoreIdentifier collectionTableAlias,
java.lang.Class filteredElementType,
ScalarExpression elementExpr,
DatastoreIdentifier elementTableAlias,
boolean existsQuery)
stmt - The Query StatementparentStmt - the parent Query Statement. If there is no parent, "parentStmt" must be equals to "stmt".ownerMapping - the mapping for the ownerownerTableExpr - Table Expression for the ownercollectionTableAlias - Alias for the "Collection" table.filteredElementType - The Class Type for the filtered elementelementExpr - The Expression for the elementelementTableAlias - The SQL alias to assign to the element table expressionexistsQuery - Whether this is joining for an EXISTS query
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||