Uses of Class
org.apache.openjpa.datacache.QueryKey
-
Uses of QueryKey in org.apache.openjpa.datacache
Modifier and TypeMethodDescriptionstatic QueryKey
QueryKey.newInstance
(Query q) Return a key for the given query, or null if it is not cacheable.static QueryKey
QueryKey.newInstance
(Query q, Object[] args) Return a key for the given query, or null if it is not cacheable.static QueryKey
QueryKey.newInstance
(Query q, Map<Object, Object> args) Return a key for the given query, or null if it is not cacheable.Modifier and TypeMethodDescriptionAbstractQueryCache.getStatistics()
DelegatingQueryCache.getStatistics()
QueryCache.getStatistics()
Gets the simple statistics for query results.Modifier and TypeMethodDescriptionReturn a list of oids for the given query key.protected abstract QueryResult
AbstractQueryCache.getInternal
(QueryKey qk) Return the list for the given key.protected QueryResult
ConcurrentQueryCache.getInternal
(QueryKey qk) boolean
boolean
boolean
Pin the value stored underqk
into the cache.protected abstract boolean
AbstractQueryCache.pinInternal
(QueryKey qk) Pin an object to the cache.protected boolean
ConcurrentQueryCache.pinInternal
(QueryKey qk) AbstractQueryCache.put
(QueryKey qk, QueryResult oids) DelegatingQueryCache.put
(QueryKey qk, QueryResult oids) QueryCache.put
(QueryKey qk, QueryResult oids) Set the list of OIDs for the given query key.protected abstract QueryResult
AbstractQueryCache.putInternal
(QueryKey qk, QueryResult oids) Add the given result to the cache, returning the old result under the given key.protected QueryResult
ConcurrentQueryCache.putInternal
(QueryKey qk, QueryResult result) Remove the value stored under the given query key.protected abstract QueryResult
AbstractQueryCache.removeInternal
(QueryKey qk) Remove the result under the given key from the cache.protected QueryResult
ConcurrentQueryCache.removeInternal
(QueryKey qk) boolean
boolean
boolean
Unpin the value stored underkey
into the cache.protected abstract boolean
AbstractQueryCache.unpinInternal
(QueryKey qk) Unpin an object from the cache.protected boolean
ConcurrentQueryCache.unpinInternal
(QueryKey qk) ModifierConstructorDescriptionQueryResult
(QueryKey key, Collection<Object> data) Constructor; supply corresponding query key and result data.