|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cayenne.query.RefreshQuery
public class RefreshQuery
A query that allows to clear both object and list caches either via refetch (eager refresh) or invalidate (lazy refresh).
Field Summary | |
---|---|
protected String[] |
groupKeys
|
protected Collection |
objects
|
protected Query |
query
|
Constructor Summary | |
---|---|
RefreshQuery()
Creates a RefreshQuery that does full refresh of all registered objects, cascading refresh all the way to the shared cache. |
|
RefreshQuery(Collection objects)
Creates a RefreshQuery that refreshes a collection of objects, including invalidation of their relationships. |
|
RefreshQuery(Persistent object)
Creates a RefreshQuery that refreshes a single object, including invalidation of its relationships. |
|
RefreshQuery(Query query)
Creates a RefreshQuery that refreshes results of a query and individual objects in the result. |
|
RefreshQuery(String[] groupKeys)
Creates a RefreshQuery that refreshes query results identified by group keys. |
Method Summary | |
---|---|
SQLAction |
createSQLAction(SQLActionVisitor visitor)
A callback method invoked by Cayenne during the final execution phase of the query run. |
String[] |
getGroupKeys()
|
QueryMetadata |
getMetaData(EntityResolver resolver)
Returns query runtime parameters. |
String |
getName()
Returns a symbolic name of the query. |
Collection |
getObjects()
|
Query |
getQuery()
Returns an internal query, overriding cache policy to force a refresh. |
boolean |
isRefreshAll()
|
void |
route(QueryRouter router,
EntityResolver resolver,
Query substitutedQuery)
A callback method invoked by Cayenne during the routing phase of the query execution. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Collection objects
protected Query query
protected String[] groupKeys
Constructor Detail |
---|
public RefreshQuery()
public RefreshQuery(Collection objects)
public RefreshQuery(Persistent object)
public RefreshQuery(Query query)
public RefreshQuery(String[] groupKeys)
Method Detail |
---|
public QueryMetadata getMetaData(EntityResolver resolver)
Query
getMetaData
in interface Query
public String getName()
Query
getName
in interface Query
public void route(QueryRouter router, EntityResolver resolver, Query substitutedQuery)
Query
QueryRouter.route(QueryEngine, Query, Query)
callback method to route
itself. Query can create one or more substitute queries or even provide its own
QueryEngine to execute itself.
route
in interface Query
public SQLAction createSQLAction(SQLActionVisitor visitor)
Query
createSQLAction
in interface Query
public boolean isRefreshAll()
public String[] getGroupKeys()
public Collection getObjects()
public Query getQuery()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |