public class QueryResultCacheImpl extends Object implements QueryResultCache
Constructor and Description |
---|
QueryResultCacheImpl(QueryCache cache)
Constructor; supply delegate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
void |
evict(javax.persistence.Query q)
Evict a query result from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(Class cls)
Evict all result for queries involving the given class.
|
QueryCache |
getDelegate()
Delegate.
|
int |
hashCode() |
void |
pin(javax.persistence.Query q)
Pin the given query's result to the cache.
|
void |
unpin(javax.persistence.Query q)
Unpin a previously-pinned query result.
|
public QueryResultCacheImpl(QueryCache cache)
public QueryCache getDelegate()
getDelegate
in interface QueryResultCache
public void pin(javax.persistence.Query q)
QueryResultCache
pin
in interface QueryResultCache
public void unpin(javax.persistence.Query q)
QueryResultCache
unpin
in interface QueryResultCache
public void evict(javax.persistence.Query q)
QueryResultCache
evict
in interface QueryResultCache
public void evictAll()
QueryResultCache
evictAll
in interface QueryResultCache
public void evictAll(Class cls)
QueryResultCache
evictAll
in interface QueryResultCache
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.