|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MapStoreQueryable
Interface representation of the querying capabilities of a backing store for a map. 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 stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar)
Create a subquery for the given query that joins a MapStore value table to the owner table. |
QueryExpression |
getSizeSubquery(QueryExpression stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar)
Create a subquery for the size of the map. |
ScalarExpression |
joinKeysTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression te,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
ScalarExpression keyExpr,
DatastoreIdentifier keyRangeVar)
Utility to create a join for keys to be used in a containsKey() query. |
ScalarExpression[] |
joinKeysToGet(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
DatastoreIdentifier keyRangeVar,
DatastoreIdentifier valueRangeVar)
Used as part of the Querying of Maps where a get(Key) is used. |
ScalarExpression[] |
joinKeysValuesTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression te,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
java.lang.Class filteredValueType,
ScalarExpression keyExpr,
ScalarExpression valExpr,
DatastoreIdentifier keyRangeVar,
DatastoreIdentifier valueRangeVar)
Utility to create a join for keys and values to be used in ai containsEntry() query. |
ScalarExpression |
joinValuesTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredValueType,
ScalarExpression valExpr,
DatastoreIdentifier valueRangeVar)
Used as part of the Querying of Maps where a containsValue() is used. |
QueryExpression |
newQueryStatement(StateManager ownerSM,
java.lang.String candidateClass,
DatastoreIdentifier candidateAlias)
Method to create a query statement for a Map with values of the supplied candidate class. |
ResultObjectFactory |
newResultObjectFactory(StateManager ownerSM,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
Utility to create a Result Object Factory to process the results of selects returning values. |
| Method Detail |
|---|
QueryExpression newQueryStatement(StateManager ownerSM,
java.lang.String candidateClass,
DatastoreIdentifier candidateAlias)
ownerSM - StateManager for the MapcandidateClass - The class for the valuescandidateAlias - Alias for the candidate
ResultObjectFactory newResultObjectFactory(StateManager ownerSM,
QueryExpression stmt,
boolean ignoreCache,
boolean useFetchPlan)
ownerSM - State Manager for the Map.stmt - The Query StatementignoreCache - Whether to ignore the cacheuseFetchPlan - whether to use the fetch plan to retrieve fields in the same query
QueryExpression getExistsSubquery(QueryExpression stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar)
stmt - The parent query statement that will use this as a subqueryownerMapping - the mapping for the ownerownerTe - Table Expression for the owner that the subquery joins tomapRangeVar - The range variable for the "Map" table.
QueryExpression getSizeSubquery(QueryExpression stmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar)
stmt - The parent query statement that will use this as a subqueryownerMapping - the mapping for the ownerownerTe - Table Expression for the owner that the subquery joins tomapRangeVar - Range variable for this subquery main table
ScalarExpression[] joinKeysValuesTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression te,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
java.lang.Class filteredValueType,
ScalarExpression keyExpr,
ScalarExpression valExpr,
DatastoreIdentifier keyRangeVar,
DatastoreIdentifier valueRangeVar)
stmt - The Query Statement to apply the joinparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerte - Table Expression for the ownermapRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the main table.filteredKeyType - The Class Type for the filtered keyfilteredValueType - The Class Type for the filtered valuekeyExpr - the expression to the key fieldvalExpr - Table Expression for the valuekeyRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the key table.valueRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the value table.
ScalarExpression joinKeysTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression te,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
ScalarExpression keyExpr,
DatastoreIdentifier keyRangeVar)
stmt - The Query StatementparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerte - Table Expression for the ownermapRangeVar - The range variable for the "Map" table.filteredKeyType - The Class Type for the filtered keykeyExpr - the expression to the key field. if not provided, obtain the expression of the ID of the table where filteredKeyType is storedkeyRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the key table.
ScalarExpression joinValuesTo(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredValueType,
ScalarExpression valExpr,
DatastoreIdentifier valueRangeVar)
stmt - The Query StatementparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerownerTe - Table Expression for the ownermapRangeVar - The range variable for the "Map" table.filteredValueType - The Class Type for the filtered valuevalExpr - the expression to the value field. if not provided, obtain the expression of the ID of the table where filteredValueType is storedvalueRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the value table.
ScalarExpression[] joinKeysToGet(QueryExpression stmt,
QueryExpression parentStmt,
JavaTypeMapping ownerMapping,
LogicSetExpression ownerTe,
DatastoreIdentifier mapRangeVar,
java.lang.Class filteredKeyType,
DatastoreIdentifier keyRangeVar,
DatastoreIdentifier valueRangeVar)
stmt - The Query Statement to apply the joinparentStmt - the parent Query Statement. If there is no parent, parentStmt must be equals to stmtownerMapping - Mapping for the ownerownerTe - Table Expression for the ownermapRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the main table.filteredKeyType - The Class Type for the filtered keykeyRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the key table.valueRangeVar - The SQL alias, or "range variable", to assign to the
expression or to the value table.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||