org.openspaces.jpa.openjpa
Class StoreManagerSQLQuery
java.lang.Object
org.apache.openjpa.kernel.AbstractStoreQuery
org.openspaces.jpa.openjpa.StoreManagerSQLQuery
- All Implemented Interfaces:
- Serializable, org.apache.openjpa.kernel.QueryOperations, org.apache.openjpa.kernel.StoreQuery
public class StoreManagerSQLQuery
- extends org.apache.openjpa.kernel.AbstractStoreQuery
Executes native SQLQueries and task
- Since:
- 8.0.1
- Author:
- anna
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class org.apache.openjpa.kernel.AbstractStoreQuery |
org.apache.openjpa.kernel.AbstractStoreQuery.AbstractExecutor |
Nested classes/interfaces inherited from interface org.apache.openjpa.kernel.StoreQuery |
org.apache.openjpa.kernel.StoreQuery.Executor, org.apache.openjpa.kernel.StoreQuery.Range |
Fields inherited from class org.apache.openjpa.kernel.AbstractStoreQuery |
ctx |
Fields inherited from interface org.apache.openjpa.kernel.StoreQuery |
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGS |
Fields inherited from interface org.apache.openjpa.kernel.QueryOperations |
OP_DELETE, OP_SELECT, OP_UPDATE |
Methods inherited from class org.apache.openjpa.kernel.AbstractStoreQuery |
evaluate, getAggregateListener, getContext, getFilterListener, invalidateCompilation, newCompilation, newCompilationKey, newInMemoryExecutor, populateFromCompilation, setContext, setQuery, supportsAbstractExecutors, supportsInMemoryExecution |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StoreManagerSQLQuery
public StoreManagerSQLQuery(StoreManager store)
getStore
public StoreManager getStore()
supportsParameterDeclarations
public boolean supportsParameterDeclarations()
- Specified by:
supportsParameterDeclarations
in interface org.apache.openjpa.kernel.StoreQuery
- Overrides:
supportsParameterDeclarations
in class org.apache.openjpa.kernel.AbstractStoreQuery
supportsDataStoreExecution
public boolean supportsDataStoreExecution()
- Specified by:
supportsDataStoreExecution
in interface org.apache.openjpa.kernel.StoreQuery
- Overrides:
supportsDataStoreExecution
in class org.apache.openjpa.kernel.AbstractStoreQuery
newDataStoreExecutor
public org.apache.openjpa.kernel.StoreQuery.Executor newDataStoreExecutor(org.apache.openjpa.meta.ClassMetaData meta,
boolean subclasses)
- Specified by:
newDataStoreExecutor
in interface org.apache.openjpa.kernel.StoreQuery
- Overrides:
newDataStoreExecutor
in class org.apache.openjpa.kernel.AbstractStoreQuery
requiresCandidateType
public boolean requiresCandidateType()
- Specified by:
requiresCandidateType
in interface org.apache.openjpa.kernel.StoreQuery
- Overrides:
requiresCandidateType
in class org.apache.openjpa.kernel.AbstractStoreQuery
requiresParameterDeclarations
public boolean requiresParameterDeclarations()
- Specified by:
requiresParameterDeclarations
in interface org.apache.openjpa.kernel.StoreQuery
- Overrides:
requiresParameterDeclarations
in class org.apache.openjpa.kernel.AbstractStoreQuery
substituteParams
public static String substituteParams(String sql,
List<Integer> paramOrder)
throws IOException
- Utility method to substitute '?num' for parameters in the given SQL statement, and fill-in
the order of the parameter tokens
- Throws:
IOException
Copyright © GigaSpaces.