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()Deprecated. 
 since 4.0, "refresh all" query will drop all cache contents | 
| 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 | 
|---|---|
| SQLAction | createSQLAction(SQLActionVisitor visitor)A callback method invoked by Cayenne during the final execution phase of the query
 run. | 
| DataMap | getDataMap()Deprecated.  | 
| 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
@Deprecated public RefreshQuery()
QueryCache.clear()public RefreshQuery(Collection<?> objects)
public RefreshQuery(Persistent object)
public RefreshQuery(Query query)
public RefreshQuery(String... groupKeys)
public 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()
@Deprecated public DataMap getDataMap()
getDataMap in interface QueryCopyright © 2001–2023 Apache Cayenne. All rights reserved.