|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.datacache.QueryCacheStoreQuery
public class QueryCacheStoreQuery
A StoreQuery implementation that caches the OIDs involved in
the query, and can determine whether or not the query has been dirtied.
| Nested Class Summary | |
|---|---|
static class |
QueryCacheStoreQuery.CachedList
Result list implementation for a cached query result. |
| Nested classes/interfaces inherited from interface org.apache.openjpa.kernel.StoreQuery |
|---|
StoreQuery.Executor, StoreQuery.Range |
| Field Summary |
|---|
| Fields inherited from interface org.apache.openjpa.kernel.StoreQuery |
|---|
EMPTY_BOOLEANS, EMPTY_CLASSES, EMPTY_METAS, EMPTY_OBJECTS, EMPTY_PARAMS, EMPTY_STRINGS |
| Fields inherited from interface org.apache.openjpa.kernel.QueryOperations |
|---|
OP_DELETE, OP_SELECT, OP_UPDATE |
| Constructor Summary | |
|---|---|
QueryCacheStoreQuery(StoreQuery query,
QueryCache cache)
Create a new instance that delegates to query if no
cached results are available. |
|
| Method Summary | |
|---|---|
AggregateListener |
getAggregateListener(String tag)
Return the standard filter listener for the given tag, or null. |
QueryCache |
getCache()
Return the QueryCache that this object is associated with. |
QueryContext |
getContext()
Return the query context that has been set. |
StoreQuery |
getDelegate()
Delegate. |
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 qctx)
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. |
Object |
writeReplace()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public QueryCacheStoreQuery(StoreQuery query,
QueryCache cache)
query if no
cached results are available.
| Method Detail |
|---|
public QueryCache getCache()
QueryCache that this object is associated with.
public StoreQuery getDelegate()
public Object writeReplace()
throws ObjectStreamException
ObjectStreamExceptionpublic QueryContext getContext()
StoreQuery
getContext in interface StoreQuerypublic void setContext(QueryContext qctx)
StoreQuery
setContext in interface StoreQuerypublic boolean setQuery(Object query)
StoreQuery
setQuery in interface StoreQuerypublic FilterListener getFilterListener(String tag)
StoreQuery
getFilterListener in interface StoreQuerypublic AggregateListener getAggregateListener(String tag)
StoreQuery
getAggregateListener in interface StoreQuerypublic Object newCompilationKey()
StoreQuery
newCompilationKey in interface StoreQuerypublic Object newCompilation()
StoreQuery
newCompilation in interface StoreQuerypublic void populateFromCompilation(Object comp)
StoreQuery
populateFromCompilation in interface StoreQuerypublic void invalidateCompilation()
StoreQuery
invalidateCompilation in interface StoreQuerypublic boolean supportsDataStoreExecution()
StoreQuery
supportsDataStoreExecution in interface StoreQuerypublic boolean supportsInMemoryExecution()
StoreQuery
supportsInMemoryExecution in interface StoreQuery
public 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 included
public 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()
StoreQuery
supportsAbstractExecutors in interface StoreQuerypublic boolean requiresCandidateType()
StoreQuery
requiresCandidateType in interface StoreQuerypublic boolean requiresParameterDeclarations()
StoreQuery
requiresParameterDeclarations in interface StoreQuerypublic boolean supportsParameterDeclarations()
StoreQuery
supportsParameterDeclarations in interface StoreQuery
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||