|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 FormField Summary | |
---|---|
protected CacheInvalidationPolicy |
invalidationPolicy
|
protected int |
maximumResultSets
|
Constructor 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. |
int |
getMaximumCachedResults()
PUBLIC: Return the maximum cached results. |
void |
setCacheInvalidationPolicy(CacheInvalidationPolicy invalidationPolicy)
PUBLIC: Set the query cache invalidation policy. |
void |
setMaximumCachedResults(int maximumResultSets)
PUBLIC: Set the maximum cached results. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CacheInvalidationPolicy invalidationPolicy
protected int maximumResultSets
Constructor Detail |
---|
public QueryResultsCachePolicy()
public QueryResultsCachePolicy(CacheInvalidationPolicy policy, int maximumResultSets)
CacheInvalidationPolicy
public QueryResultsCachePolicy(CacheInvalidationPolicy policy)
CacheInvalidationPolicy
public QueryResultsCachePolicy(int maximumResultSets)
Method Detail |
---|
public CacheInvalidationPolicy getCacheInvalidationPolicy()
public void setCacheInvalidationPolicy(CacheInvalidationPolicy invalidationPolicy)
public int getMaximumCachedResults()
public void setMaximumCachedResults(int maximumResultSets)
|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |