Package org.apache.openjpa.kernel
Class MethodStoreQuery
- java.lang.Object
-
- org.apache.openjpa.kernel.AbstractStoreQuery
-
- org.apache.openjpa.kernel.MethodStoreQuery
-
- All Implemented Interfaces:
Serializable,QueryOperations,StoreQuery
public class MethodStoreQuery extends AbstractStoreQuery
A query that is executed by a user-defined method.- Author:
- Abe White
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.openjpa.kernel.AbstractStoreQuery
AbstractStoreQuery.AbstractExecutor
-
Nested classes/interfaces inherited from interface org.apache.openjpa.kernel.StoreQuery
StoreQuery.Executor, StoreQuery.Range
-
-
Field Summary
Fields Modifier and Type Field Description static StringLANGUAGE-
Fields inherited from class org.apache.openjpa.kernel.AbstractStoreQuery
ctx
-
Fields inherited from interface org.apache.openjpa.kernel.QueryOperations
OP_DELETE, OP_SELECT, OP_UPDATE
-
Fields inherited from interface org.apache.openjpa.kernel.StoreQuery
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGS
-
-
Constructor Summary
Constructors Constructor Description MethodStoreQuery()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinvalidateCompilation()Invalidate any internal compilation state.StoreQuery.ExecutornewDataStoreExecutor(ClassMetaData meta, boolean subs)Return an executor for datastore execution of this query.StoreQuery.ExecutornewInMemoryExecutor(ClassMetaData meta, boolean subs)Return an executor for in-memory execution of this query.booleanrequiresCandidateType()Whether this query requires a candidate class.booleansupportsDataStoreExecution()True if this query supports datastore execution, false if it can only run in memory.booleansupportsInMemoryExecution()True if this query supports in-memory execution, false if it can only run against the datastore.-
Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery
evaluate, getAggregateListener, getCompilation, getContext, getFilterListener, newCompilation, newCompilationKey, populateFromCompilation, requiresParameterDeclarations, setContext, setQuery, supportsAbstractExecutors, supportsParameterDeclarations
-
-
-
-
Field Detail
-
LANGUAGE
public static final String LANGUAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
invalidateCompilation
public void invalidateCompilation()
Description copied from interface:StoreQueryInvalidate any internal compilation state.- Specified by:
invalidateCompilationin interfaceStoreQuery- Overrides:
invalidateCompilationin classAbstractStoreQuery
-
newInMemoryExecutor
public StoreQuery.Executor newInMemoryExecutor(ClassMetaData meta, boolean subs)
Description copied from interface:StoreQueryReturn an executor for in-memory execution of this query. Executors must be cachable and thread safe. If this class returns true fromStoreQuery.supportsAbstractExecutors(), the given metadata will always be for the candidate class of this query, or possibly null if the candidate class is not itself persistence capable (like an interface or abstract base class). Otherwise, the given type will be a mapped class.- Specified by:
newInMemoryExecutorin interfaceStoreQuery- Overrides:
newInMemoryExecutorin classAbstractStoreQuerysubs- whether to include dependent mapped subclasses in the results; independent subclasses should never be included
-
newDataStoreExecutor
public StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta, boolean subs)
Description copied from interface:StoreQueryReturn an executor for datastore execution of this query. Executors must be cachable and thread safe. If this class returns true fromStoreQuery.supportsAbstractExecutors(), the given metadata will always be for the candidate class of this query, or possibly null if the candidate class is not itself persistence capable (like an interface or abstract base class). Otherwise, the given type will be a mapped class.- Specified by:
newDataStoreExecutorin interfaceStoreQuery- Overrides:
newDataStoreExecutorin classAbstractStoreQuerysubs- whether to include dependent mapped subclasses in the results; independent subclasses should never be included
-
supportsInMemoryExecution
public boolean supportsInMemoryExecution()
Description copied from interface:StoreQueryTrue if this query supports in-memory execution, false if it can only run against the datastore.- Specified by:
supportsInMemoryExecutionin interfaceStoreQuery- Overrides:
supportsInMemoryExecutionin classAbstractStoreQuery
-
supportsDataStoreExecution
public boolean supportsDataStoreExecution()
Description copied from interface:StoreQueryTrue if this query supports datastore execution, false if it can only run in memory.- Specified by:
supportsDataStoreExecutionin interfaceStoreQuery- Overrides:
supportsDataStoreExecutionin classAbstractStoreQuery
-
requiresCandidateType
public boolean requiresCandidateType()
Description copied from interface:StoreQueryWhether this query requires a candidate class.- Specified by:
requiresCandidateTypein interfaceStoreQuery- Overrides:
requiresCandidateTypein classAbstractStoreQuery
-
-