GigaSpaces XAP 10.0.1 API

org.openspaces.jpa.openjpa
Class StoreManagerSQLQuery

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractStoreQuery
      extended by 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 Class Summary
protected static class StoreManagerSQLQuery.SQLExecutor
          Executes the filter as a SQL query.
 
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
 
Field Summary
 
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
 
Constructor Summary
StoreManagerSQLQuery(StoreManager store)
           
 
Method Summary
 StoreManager getStore()
           
 org.apache.openjpa.kernel.StoreQuery.Executor newDataStoreExecutor(org.apache.openjpa.meta.ClassMetaData meta, boolean subclasses)
           
 boolean requiresCandidateType()
           
 boolean requiresParameterDeclarations()
           
static String substituteParams(String sql, List<Integer> paramOrder)
          Utility method to substitute '?
 boolean supportsDataStoreExecution()
           
 boolean supportsParameterDeclarations()
           
 
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
 

Constructor Detail

StoreManagerSQLQuery

public StoreManagerSQLQuery(StoreManager store)
Method Detail

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

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.