Package org.apache.cayenne.util
Class ObjectContextQueryAction
java.lang.Object
org.apache.cayenne.util.ObjectContextQueryAction
A helper class that implements
DataChannel.onQuery(ObjectContext, Query)
logic on behalf of
an ObjectContext.
Intended for internal use only.
- Since:
- 1.2
-
Field Summary
Modifier and TypeFieldDescriptionprotected ObjectContext
protected static final boolean
protected QueryMetadata
protected Query
protected boolean
protected QueryResponse
protected ObjectContext
-
Constructor Summary
ConstructorDescriptionObjectContextQueryAction
(ObjectContext actingContext, ObjectContext targetContext, Query query) -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Worker method that performs internal query.protected QueryCacheEntryFactory
protected QueryCache
protected boolean
protected boolean
protected void
Transfers fetched objects into the target context if it is different from "acting" context.protected boolean
protected abstract boolean
protected abstract boolean
protected boolean
protected Object
polymorphicObjectFromCache
(ObjectId superOid) protected void
runQuery()
Fetches data from the channel.
-
Field Details
-
DONE
protected static final boolean DONE- See Also:
-
targetContext
-
actingContext
-
query
-
metadata
-
queryOriginator
protected boolean queryOriginator -
response
-
-
Constructor Details
-
ObjectContextQueryAction
public ObjectContextQueryAction(ObjectContext actingContext, ObjectContext targetContext, Query query)
-
-
Method Details
-
execute
Worker method that performs internal query. -
interceptObjectConversion
protected void interceptObjectConversion()Transfers fetched objects into the target context if it is different from "acting" context. Note that when this method is invoked, result objects are already registered with acting context by the parent channel. -
interceptInternalQuery
protected boolean interceptInternalQuery() -
interceptOIDQuery
protected boolean interceptOIDQuery() -
polymorphicObjectFromCache
-
interceptRelationshipQuery
protected boolean interceptRelationshipQuery() -
interceptPaginatedQuery
protected abstract boolean interceptPaginatedQuery()- Since:
- 3.0
-
interceptRefreshQuery
protected abstract boolean interceptRefreshQuery()- Since:
- 3.0
-
interceptLocalCache
protected boolean interceptLocalCache()- Since:
- 3.0
-
getQueryCache
- Since:
- 3.0
-
getCacheObjectFactory
- Since:
- 3.0
-
runQuery
protected void runQuery()Fetches data from the channel.
-