public class RefreshQuery extends Object implements Query
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
groupKeys |
protected Collection<?> |
objects |
protected Query |
query |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
acceptVisitor(ConfigurationNodeVisitor<T> visitor) |
SQLAction |
createSQLAction(SQLActionVisitor visitor)
A callback method invoked by Cayenne during the final execution phase of the query
run.
|
DataMap |
getDataMap() |
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.
|
protected Collection<?> objects
protected Query query
protected String[] groupKeys
public RefreshQuery()
public RefreshQuery(Collection<?> objects)
public RefreshQuery(Persistent object)
public RefreshQuery(Query query)
public RefreshQuery(String... groupKeys)
public <T> T acceptVisitor(ConfigurationNodeVisitor<T> visitor)
acceptVisitor in interface ConfigurationNodepublic QueryMetadata getMetaData(EntityResolver resolver)
QuerygetMetaData in interface Querypublic String getName()
Querypublic void route(QueryRouter router, EntityResolver resolver, Query substitutedQuery)
QueryQueryRouter.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.public SQLAction createSQLAction(SQLActionVisitor visitor)
QuerycreateSQLAction in interface Querypublic boolean isRefreshAll()
public String[] getGroupKeys()
public Collection<?> getObjects()
public Query getQuery()
public DataMap getDataMap()
getDataMap in interface QueryCopyright © 2001–2018 Apache Cayenne. All rights reserved.