Class PreparedSQLStoreQuery
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery
org.apache.openjpa.jdbc.kernel.SQLStoreQuery
org.apache.openjpa.jdbc.kernel.PreparedSQLStoreQuery
- All Implemented Interfaces:
Serializable, QueryOperations, StoreQuery
A executor for Prepared SQL Query.
- Author:
- Pinaki Poddar
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classExecutor of a prepared query uses the QueryExpressions of the original query available via the PreparedQuery.Nested classes/interfaces inherited from class SQLStoreQuery
SQLStoreQuery.SQLExecutorNested classes/interfaces inherited from class AbstractStoreQuery
AbstractStoreQuery.AbstractExecutorNested classes/interfaces inherited from interface StoreQuery
StoreQuery.Executor, StoreQuery.Range -
Field Summary
Fields inherited from class AbstractStoreQuery
ctxFields inherited from interface QueryOperations
OP_DELETE, OP_SELECT, OP_UPDATEFields inherited from interface StoreQuery
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_INTS, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewDataStoreExecutor(ClassMetaData meta, boolean subclasses) Return an executor for datastore execution of this query.booleanThis is invoked when the user or a facade creates a new query with an object that the system does not recognize.Methods inherited from class SQLStoreQuery
getStore, requiresCandidateType, requiresParameterDeclarations, substituteParams, supportsDataStoreExecution, supportsParameterDeclarations
-
Constructor Details
-
PreparedSQLStoreQuery
-
-
Method Details
-
newDataStoreExecutor
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 classSQLStoreQuery- Parameters:
subclasses- whether to include dependent mapped subclasses in the results; independent subclasses should never be included
-
setQuery
Description copied from interface:StoreQueryThis 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:
setQueryin interfaceStoreQuery- Overrides:
setQueryin classAbstractStoreQuery
-