public class SQLStoreQuery extends AbstractStoreQuery
Modifier and Type | Class and Description |
---|---|
static class |
SQLStoreQuery.SQLExecutor
Executes the filter as a SQL query.
|
AbstractStoreQuery.AbstractExecutor
StoreQuery.Executor, StoreQuery.Range
ctx
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGS
OP_DELETE, OP_SELECT, OP_UPDATE
Constructor and Description |
---|
SQLStoreQuery(JDBCStore store)
Construct a query managed by the given context.
|
Modifier and Type | Method and Description |
---|---|
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 '?
|
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.
|
evaluate, getAggregateListener, getCompilation, getContext, getFilterListener, invalidateCompilation, newCompilation, newCompilationKey, newInMemoryExecutor, populateFromCompilation, setContext, setQuery, supportsAbstractExecutors, supportsInMemoryExecution
public SQLStoreQuery(JDBCStore store)
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
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.