|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.AbstractStoreQuery org.apache.openjpa.jdbc.kernel.SQLStoreQuery
public class SQLStoreQuery
A SQL query.
Nested Class Summary | |
---|---|
protected static class |
SQLStoreQuery.SQLExecutor
Executes the filter as a SQL query. |
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.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 | |
---|---|
SQLStoreQuery(JDBCStore store)
Construct a query managed by the given context. |
Method Summary | |
---|---|
JDBCStore |
getStore()
|
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. |
static String |
substituteParams(String sql,
List<Integer> paramOrder)
Utility method to substitute '?num' for parameters in the given SQL statement, and fill-in the order of the parameter tokens |
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, 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 |
---|
public SQLStoreQuery(JDBCStore store)
Method Detail |
---|
public JDBCStore getStore()
public boolean supportsParameterDeclarations()
StoreQuery
supportsParameterDeclarations
in interface StoreQuery
supportsParameterDeclarations
in class AbstractStoreQuery
public boolean supportsDataStoreExecution()
StoreQuery
supportsDataStoreExecution
in interface StoreQuery
supportsDataStoreExecution
in class AbstractStoreQuery
public StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
StoreQuery
StoreQuery.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.
newDataStoreExecutor
in interface StoreQuery
newDataStoreExecutor
in class AbstractStoreQuery
subclasses
- whether to include dependent mapped subclasses in the
results; independent subclasses should never be includedpublic boolean requiresCandidateType()
StoreQuery
requiresCandidateType
in interface StoreQuery
requiresCandidateType
in class AbstractStoreQuery
public boolean requiresParameterDeclarations()
StoreQuery
requiresParameterDeclarations
in interface StoreQuery
requiresParameterDeclarations
in class AbstractStoreQuery
public static String substituteParams(String sql, List<Integer> paramOrder) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |