# Uses of Enum
org.apache.cayenne.query.QueryCacheStrategy

Packages that use QueryCacheStrategy
Package
Description
org.apache.cayenne.query
Defines standard queries supported by Cayenne and extension mechanism to create custom queries.

- ## Uses of QueryCacheStrategy in org.apache.cayenne.query

  Fields in org.apache.cayenne.query declared as QueryCacheStrategy
  Modifier and Type
  Field
  Description
  `protected QueryCacheStrategy`
  SQLSelect.`cacheStrategy`
  Methods in org.apache.cayenne.query that return QueryCacheStrategy
  Modifier and Type
  Method
  Description
  `QueryCacheStrategy`
  CacheableQuery.`getCacheStrategy()`
  `QueryCacheStrategy`
  QueryMetadata.`getCacheStrategy()`
  Returns a caching strategy for this query.
  `QueryCacheStrategy`
  QueryMetadataProxy.`getCacheStrategy()`
  `QueryCacheStrategy`
  SelectById.`getCacheStrategy()`
  `QueryCacheStrategy`
  SQLSelect.`getCacheStrategy()`
  `static QueryCacheStrategy`
  QueryCacheStrategy.`getDefaultStrategy()`
  Returns the default strategy - `NO_CACHE`.
  `static QueryCacheStrategy`
  QueryCacheStrategy.`safeValueOf(String string)`
  Returns QueryCacheStrategy for the specified string name or default strategy for invalid names.
  `static QueryCacheStrategy`
  QueryCacheStrategy.`valueOf(String name)`
  Returns the enum constant of this type with the specified name.
  `static QueryCacheStrategy[]`
  QueryCacheStrategy.`values()`
  Returns an array containing the constants of this enum type, in the order they are declared.
  Methods in org.apache.cayenne.query with parameters of type QueryCacheStrategy
  Modifier and Type
  Method
  Description
  `ColumnSelect<T>`
  ColumnSelect.`cacheStrategy(QueryCacheStrategy strategy)`
  `ColumnSelect<T>`
  ColumnSelect.`cacheStrategy(QueryCacheStrategy strategy, String cacheGroup)`
  `ObjectSelect<T>`
  ObjectSelect.`cacheStrategy(QueryCacheStrategy strategy)`
  `ObjectSelect<T>`
  ObjectSelect.`cacheStrategy(QueryCacheStrategy strategy, String cacheGroup)`
  `SelectById<T>`
  SelectById.`cacheStrategy(QueryCacheStrategy strategy)`
  `SelectById<T>`
  SelectById.`cacheStrategy(QueryCacheStrategy strategy, String cacheGroup)`
  `SQLSelect<T>`
  SQLSelect.`cacheStrategy(QueryCacheStrategy strategy)`
  `SQLSelect<T>`
  SQLSelect.`cacheStrategy(QueryCacheStrategy strategy, String cacheGroup)`
  `void`
  CacheableQuery.`setCacheStrategy(QueryCacheStrategy strategy)`