public abstract class ObjectContextQueryAction extends Object
DataChannel.onQuery(ObjectContext, Query)
logic on behalf of
an ObjectContext.
Intended for internal use only.
Modifier and Type | Field and Description |
---|---|
protected ObjectContext |
actingContext |
protected static boolean |
DONE |
protected QueryMetadata |
metadata |
protected Query |
query |
protected boolean |
queryOriginator |
protected QueryResponse |
response |
protected ObjectContext |
targetContext |
Constructor and Description |
---|
ObjectContextQueryAction(ObjectContext actingContext,
ObjectContext targetContext,
Query query) |
Modifier and Type | Method and Description |
---|---|
QueryResponse |
execute()
Worker method that performs internal query.
|
protected QueryCacheEntryFactory |
getCacheObjectFactory() |
protected QueryCache |
getQueryCache() |
protected boolean |
interceptInternalQuery() |
protected boolean |
interceptLocalCache() |
protected void |
interceptObjectConversion()
Transfers fetched objects into the target context if it is different from "acting"
context.
|
protected boolean |
interceptOIDQuery() |
protected abstract boolean |
interceptPaginatedQuery() |
protected abstract boolean |
interceptRefreshQuery() |
protected boolean |
interceptRelationshipQuery() |
protected void |
runQuery()
Fetches data from the channel.
|
protected static final boolean DONE
protected ObjectContext targetContext
protected ObjectContext actingContext
protected Query query
protected QueryMetadata metadata
protected boolean queryOriginator
protected transient QueryResponse response
public ObjectContextQueryAction(ObjectContext actingContext, ObjectContext targetContext, Query query)
public QueryResponse execute()
protected void interceptObjectConversion()
protected boolean interceptInternalQuery()
protected boolean interceptOIDQuery()
protected boolean interceptRelationshipQuery()
protected abstract boolean interceptPaginatedQuery()
protected abstract boolean interceptRefreshQuery()
protected boolean interceptLocalCache()
protected QueryCache getQueryCache()
protected QueryCacheEntryFactory getCacheObjectFactory()
protected void runQuery()
Copyright © 2001–2015 Apache Cayenne. All rights reserved.