public abstract class AbstractStoreQuery extends Object implements StoreQuery
StoreQuery that implements most methods as no-ops.| Modifier and Type | Class and Description | 
|---|---|
| static class  | AbstractStoreQuery.AbstractExecutorAbstract  Executorthat implements most methods as no-ops. | 
StoreQuery.Executor, StoreQuery.Range| Modifier and Type | Field and Description | 
|---|---|
| protected QueryContext | ctx | 
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_ORDERED_PARAMS, EMPTY_PARAMS, EMPTY_STRINGSOP_DELETE, OP_SELECT, OP_UPDATE| Constructor and Description | 
|---|
| AbstractStoreQuery() | 
| Modifier and Type | Method and Description | 
|---|---|
| Object | evaluate(Object value,
        Object ob,
        Object[] params,
        OpenJPAStateManager sm) | 
| AggregateListener | getAggregateListener(String tag)Return the standard filter listener for the given tag, or null. | 
| Object | getCompilation()Get the current compilation for this query. | 
| QueryContext | getContext()Return the query context that has been set. | 
| FilterListener | getFilterListener(String tag)Return the standard filter listener for the given tag, or null. | 
| void | invalidateCompilation()Invalidate any internal compilation state. | 
| Object | newCompilation()Create a new compilation for this query. | 
| Object | newCompilationKey()Create a new key for caching compiled query information. | 
| StoreQuery.Executor | newDataStoreExecutor(ClassMetaData meta,
                    boolean subs)Return an executor for datastore execution of this query. | 
| StoreQuery.Executor | newInMemoryExecutor(ClassMetaData meta,
                   boolean subs)Return an executor for in-memory execution of this query. | 
| void | populateFromCompilation(Object comp)Populate internal data from compilation. | 
| boolean | requiresCandidateType()Whether this query requires a candidate class. | 
| boolean | requiresParameterDeclarations()Whether this query requires parameters to be declared. | 
| void | setContext(QueryContext ctx)Set the current query context. | 
| boolean | setQuery(Object query)This is invoked when the user or a facade creates a new query with
 an object that the system does not recognize. | 
| boolean | supportsAbstractExecutors()Return true if this query supports execution against abstract or
 interface types. | 
| boolean | supportsDataStoreExecution()True if this query supports datastore execution, false if it
 can only run in memory. | 
| boolean | supportsInMemoryExecution()True if this query supports in-memory execution, false if it
 can only run against the datastore. | 
| boolean | supportsParameterDeclarations()Whether this query supports declared parameters. | 
protected QueryContext ctx
public QueryContext getContext()
StoreQuerygetContext in interface StoreQuerypublic void setContext(QueryContext ctx)
StoreQuerysetContext in interface StoreQuerypublic boolean setQuery(Object query)
StoreQuerysetQuery in interface StoreQuerypublic FilterListener getFilterListener(String tag)
StoreQuerygetFilterListener in interface StoreQuerypublic AggregateListener getAggregateListener(String tag)
StoreQuerygetAggregateListener in interface StoreQuerypublic Object newCompilationKey()
StoreQuerynewCompilationKey in interface StoreQuerypublic Object newCompilation()
StoreQuerynewCompilation in interface StoreQuerypublic Object getCompilation()
StoreQuerygetCompilation in interface StoreQuerypublic void populateFromCompilation(Object comp)
StoreQuerypopulateFromCompilation in interface StoreQuerypublic void invalidateCompilation()
StoreQueryinvalidateCompilation in interface StoreQuerypublic boolean supportsDataStoreExecution()
StoreQuerysupportsDataStoreExecution in interface StoreQuerypublic boolean supportsInMemoryExecution()
StoreQuerysupportsInMemoryExecution in interface StoreQuerypublic StoreQuery.Executor newInMemoryExecutor(ClassMetaData meta, boolean subs)
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.newInMemoryExecutor in interface StoreQuerysubs - whether to include dependent mapped subclasses in the
 results; independent subclasses should never be includedpublic StoreQuery.Executor newDataStoreExecutor(ClassMetaData meta, boolean subs)
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 StoreQuerysubs - whether to include dependent mapped subclasses in the
 results; independent subclasses should never be includedpublic boolean supportsAbstractExecutors()
StoreQuerysupportsAbstractExecutors in interface StoreQuerypublic boolean requiresCandidateType()
StoreQueryrequiresCandidateType in interface StoreQuerypublic boolean requiresParameterDeclarations()
StoreQueryrequiresParameterDeclarations in interface StoreQuerypublic boolean supportsParameterDeclarations()
StoreQuerysupportsParameterDeclarations in interface StoreQuerypublic Object evaluate(Object value, Object ob, Object[] params, OpenJPAStateManager sm)
evaluate in interface StoreQueryCopyright © 2006–2020 Apache Software Foundation. All rights reserved.