public class StoreManagerQuery
extends org.apache.openjpa.kernel.ExpressionStoreQuery
org.apache.openjpa.kernel.ExpressionStoreQuery.AbstractExpressionExecutor, org.apache.openjpa.kernel.ExpressionStoreQuery.DataStoreExecutor
Constructor and Description |
---|
StoreManagerQuery(org.apache.openjpa.kernel.exps.ExpressionParser parser,
StoreManager store) |
Modifier and Type | Method and Description |
---|---|
protected org.apache.openjpa.lib.rop.ResultObjectProvider |
executeQuery(org.apache.openjpa.kernel.StoreQuery.Executor ex,
org.apache.openjpa.meta.ClassMetaData classMetaData,
org.apache.openjpa.meta.ClassMetaData[] types,
boolean subClasses,
org.apache.openjpa.kernel.exps.ExpressionFactory[] factories,
org.apache.openjpa.kernel.exps.QueryExpressions[] expressions,
Object[] parameters,
org.apache.openjpa.kernel.StoreQuery.Range range)
Execute the given expression against the given candidate extent.
|
protected String[] |
getDataStoreActions(org.apache.openjpa.meta.ClassMetaData base,
org.apache.openjpa.meta.ClassMetaData[] types,
boolean subclasses,
org.apache.openjpa.kernel.exps.ExpressionFactory[] facts,
org.apache.openjpa.kernel.exps.QueryExpressions[] parsed,
Object[] params,
org.apache.openjpa.kernel.StoreQuery.Range range)
Return the commands that will be sent to the datastore in order to execute the query,
typically in the database's native language.
|
protected org.apache.openjpa.kernel.exps.ExpressionFactory |
getExpressionFactory(org.apache.openjpa.meta.ClassMetaData type)
Return an
ExpressionFactory to use to create an expression to be executed against an
extent. |
protected org.apache.openjpa.meta.ClassMetaData[] |
getIndependentExpressionCandidates(org.apache.openjpa.meta.ClassMetaData type,
boolean subclasses)
Return the assignable types for the given metadata whose expression trees must be compiled
independently.
|
boolean |
supportsDataStoreExecution() |
executeDelete, executeUpdate, getFilterListener, getResolver, invalidateCompilation, newCompilation, newDataStoreExecutor, newInMemoryExecutor, populateFromCompilation, setQuery, supportsInMemoryExecution
public StoreManagerQuery(org.apache.openjpa.kernel.exps.ExpressionParser parser, StoreManager store)
public boolean supportsDataStoreExecution()
supportsDataStoreExecution
in interface org.apache.openjpa.kernel.StoreQuery
supportsDataStoreExecution
in class org.apache.openjpa.kernel.AbstractStoreQuery
protected org.apache.openjpa.lib.rop.ResultObjectProvider executeQuery(org.apache.openjpa.kernel.StoreQuery.Executor ex, org.apache.openjpa.meta.ClassMetaData classMetaData, org.apache.openjpa.meta.ClassMetaData[] types, boolean subClasses, org.apache.openjpa.kernel.exps.ExpressionFactory[] factories, org.apache.openjpa.kernel.exps.QueryExpressions[] expressions, Object[] parameters, org.apache.openjpa.kernel.StoreQuery.Range range)
executeQuery
in class org.apache.openjpa.kernel.ExpressionStoreQuery
protected String[] getDataStoreActions(org.apache.openjpa.meta.ClassMetaData base, org.apache.openjpa.meta.ClassMetaData[] types, boolean subclasses, org.apache.openjpa.kernel.exps.ExpressionFactory[] facts, org.apache.openjpa.kernel.exps.QueryExpressions[] parsed, Object[] params, org.apache.openjpa.kernel.StoreQuery.Range range)
getDataStoreActions
in class org.apache.openjpa.kernel.ExpressionStoreQuery
base
- the base type the query should matchtypes
- the independent candidate typessubclasses
- true if subclasses should be included in the resultsfacts
- the expression factory used to build the query for each base typeparsed
- the parsed query valuesparams
- parameter values, or empty arrayrange
- result rangeprotected org.apache.openjpa.meta.ClassMetaData[] getIndependentExpressionCandidates(org.apache.openjpa.meta.ClassMetaData type, boolean subclasses)
getIndependentExpressionCandidates
in class org.apache.openjpa.kernel.ExpressionStoreQuery
protected org.apache.openjpa.kernel.exps.ExpressionFactory getExpressionFactory(org.apache.openjpa.meta.ClassMetaData type)
ExpressionFactory
to use to create an expression to be executed against an
extent. Each factory will be used to compile one filter only. The factory must be cachable.getExpressionFactory
in class org.apache.openjpa.kernel.ExpressionStoreQuery
Copyright © GigaSpaces.