Package org.apache.openjpa.jdbc.kernel
Class StoredProcedureQuery
- java.lang.Object
-
- org.apache.openjpa.kernel.AbstractStoreQuery
-
- org.apache.openjpa.jdbc.kernel.StoredProcedureQuery
-
- All Implemented Interfaces:
java.io.Serializable
,QueryOperations
,StoreQuery
public class StoredProcedureQuery extends AbstractStoreQuery
Executes a stored procedure.- Author:
- ppoddar
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
StoredProcedureQuery.StoredProcedureQueryExecutor
-
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 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 StoredProcedureQuery(JDBCStore store)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBDictionary
getDictionary()
int
getOperation()
StoredProcedure
getProcedure()
StoreQuery.Executor
newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
Return an executor for datastore execution of this query.boolean
requiresCandidateType()
Whether this query requires a candidate class.boolean
requiresParameterDeclarations()
Whether this query requires parameters to be declared.boolean
setQuery(java.lang.Object meta)
This is invoked when the user or a facade creates a new query with an object that the system does not recognize.boolean
supportsDataStoreExecution()
True if this query supports datastore execution, false if it can only run in memory.boolean
supportsParameterDeclarations()
Whether this query supports declared parameters.-
Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery
evaluate, getAggregateListener, getCompilation, getContext, getFilterListener, invalidateCompilation, newCompilation, newCompilationKey, newInMemoryExecutor, populateFromCompilation, setContext, supportsAbstractExecutors, supportsInMemoryExecution
-
-
-
-
Constructor Detail
-
StoredProcedureQuery
public StoredProcedureQuery(JDBCStore store)
-
-
Method Detail
-
getOperation
public int getOperation()
-
getProcedure
public StoredProcedure getProcedure()
-
getDictionary
public DBDictionary getDictionary()
-
setQuery
public boolean setQuery(java.lang.Object meta)
Description copied from interface:StoreQuery
This is invoked when the user or a facade creates a new query with an object that the system does not recognize. Return true if the object is recognized by the store, false otherwise.- Specified by:
setQuery
in interfaceStoreQuery
- Overrides:
setQuery
in classAbstractStoreQuery
-
newDataStoreExecutor
public StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
Description copied from interface:StoreQuery
Return 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:
newDataStoreExecutor
in interfaceStoreQuery
- Overrides:
newDataStoreExecutor
in classAbstractStoreQuery
subclasses
- whether to include dependent mapped subclasses in the results; independent subclasses should never be included
-
supportsParameterDeclarations
public boolean supportsParameterDeclarations()
Description copied from interface:StoreQuery
Whether this query supports declared parameters.- Specified by:
supportsParameterDeclarations
in interfaceStoreQuery
- Overrides:
supportsParameterDeclarations
in classAbstractStoreQuery
-
supportsDataStoreExecution
public boolean supportsDataStoreExecution()
Description copied from interface:StoreQuery
True if this query supports datastore execution, false if it can only run in memory.- Specified by:
supportsDataStoreExecution
in interfaceStoreQuery
- Overrides:
supportsDataStoreExecution
in classAbstractStoreQuery
-
requiresCandidateType
public boolean requiresCandidateType()
Description copied from interface:StoreQuery
Whether this query requires a candidate class.- Specified by:
requiresCandidateType
in interfaceStoreQuery
- Overrides:
requiresCandidateType
in classAbstractStoreQuery
-
requiresParameterDeclarations
public boolean requiresParameterDeclarations()
Description copied from interface:StoreQuery
Whether this query requires parameters to be declared.- Specified by:
requiresParameterDeclarations
in interfaceStoreQuery
- Overrides:
requiresParameterDeclarations
in classAbstractStoreQuery
-
-