public class SQLStoreQuery extends AbstractStoreQuery
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLStoreQuery.SQLExecutor
Executes the filter as a SQL query.
|
AbstractStoreQuery.AbstractExecutorStoreQuery.Executor, StoreQuery.RangectxEMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGSOP_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, supportsInMemoryExecutionpublic SQLStoreQuery(JDBCStore store)
public JDBCStore getStore()
public boolean supportsParameterDeclarations()
StoreQuerysupportsParameterDeclarations in interface StoreQuerysupportsParameterDeclarations in class AbstractStoreQuerypublic boolean supportsDataStoreExecution()
StoreQuerysupportsDataStoreExecution in interface StoreQuerysupportsDataStoreExecution in class AbstractStoreQuerypublic StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta, boolean subclasses)
StoreQueryStoreQuery.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 StoreQuerynewDataStoreExecutor in class AbstractStoreQuerysubclasses - whether to include dependent mapped subclasses in the
results; independent subclasses should never be includedpublic boolean requiresCandidateType()
StoreQueryrequiresCandidateType in interface StoreQueryrequiresCandidateType in class AbstractStoreQuerypublic boolean requiresParameterDeclarations()
StoreQueryrequiresParameterDeclarations in interface StoreQueryrequiresParameterDeclarations in class AbstractStoreQuerypublic static String substituteParams(String sql, List<Integer> paramOrder) throws IOException
IOExceptionCopyright © 2006–2022 Apache Software Foundation. All rights reserved.