public class QueryResultCacheImpl extends java.lang.Object implements QueryResultCache
Constructor and Description |
---|
QueryResultCacheImpl(QueryCache cache)
Constructor; supply delegate.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
void |
evict(javax.persistence.Query q)
Evict a query result from the cache.
|
void |
evictAll()
Clear the cache.
|
void |
evictAll(java.lang.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(java.lang.Class cls)
QueryResultCache
evictAll
in interface QueryResultCache
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.