|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.persistence.queries.QueryResultsCachePolicy
public class QueryResultsCachePolicy
PUBLIC: A QueryResultsCache policy dictates how a query's results will be cached. It allows an invalidation policy and a maximum number of results to be set. Query results are cached based on the parameter values of a query, and the maximum number of results refers to the maximum number of parameter sets results will be ached for.
org.eclipse.persistence.queries.ReadQuery#setQueryCachePolicy(QueryResultsCachePolicy)
,
Serialized FormConstructor Summary | |
---|---|
QueryResultsCachePolicy()
PUBLIC: Build a QueryResultsCachePolicy with the default settings By default there is no invalidation of query results and the maximum number of results sets is 100. |
|
QueryResultsCachePolicy(CacheInvalidationPolicy policy)
PUBLIC: Build a QueryResultsCachePolicy and supply a CacheInvalidationPolicy. |
|
QueryResultsCachePolicy(CacheInvalidationPolicy policy,
int maximumResultSets)
PUBLIC: Build a QueryResultsCachePolicy and supply a CacheInvalidationPolicy and a maximum number of results sets. |
|
QueryResultsCachePolicy(int maximumResultSets)
PUBLIC: Build a QueryResultsCachePolicy and supply a maximum for the number of results sets. |
Method Summary | |
---|---|
CacheInvalidationPolicy |
getCacheInvalidationPolicy()
PUBLIC: Return the query cache invalidation policy. |
java.lang.Class |
getCacheType()
PUBLIC: Return the type of the cache used for the query results. |
int |
getMaximumCachedResults()
PUBLIC: Return the maximum cached results. |
boolean |
isNullIgnored()
PUBLIC: Return if null results should be cached or ignored. |
void |
setCacheInvalidationPolicy(CacheInvalidationPolicy invalidationPolicy)
PUBLIC: Set the query cache invalidation policy. |
void |
setCacheType(java.lang.Class cacheType)
PUBLIC: Set the type of the cache used for the query results. |
void |
setIsNullIgnored(boolean isNullIgnored)
PUBLIC: Set if null results should be cached or ignored. |
void |
setMaximumCachedResults(int maximumResultSets)
PUBLIC: Set the maximum cached results. |
void |
useFullCache()
PUBLIC: Set the type of the cache used for the query results to a FullIdentityMap. |
void |
useLRUCache()
PUBLIC: Set the type of the cache used for the query results to a CacheIdentityMap. |
void |
useSoftCache()
PUBLIC: Set the type of the cache used for the query results to a SoftIdentityMap. |
void |
useSoftLRUCache()
PUBLIC: Set the type of the cache used for the query results to a SoftCacheWeakIdentityMap. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QueryResultsCachePolicy()
public QueryResultsCachePolicy(CacheInvalidationPolicy policy, int maximumResultSets)
CacheInvalidationPolicy
public QueryResultsCachePolicy(CacheInvalidationPolicy policy)
CacheInvalidationPolicy
public QueryResultsCachePolicy(int maximumResultSets)
Method Detail |
---|
public boolean isNullIgnored()
public void setIsNullIgnored(boolean isNullIgnored)
public java.lang.Class getCacheType()
public void setCacheType(java.lang.Class cacheType)
public void useFullCache()
public void useSoftCache()
public void useSoftLRUCache()
public void useLRUCache()
public CacheInvalidationPolicy getCacheInvalidationPolicy()
public void setCacheInvalidationPolicy(CacheInvalidationPolicy invalidationPolicy)
public int getMaximumCachedResults()
public void setMaximumCachedResults(int maximumResultSets)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |