Adds an entry request/reply to the cache. Note that if the request was
already in the cache, only the result is updated.
Parameters: request - the request Parameters: result - the result corresponding to the request exception: CacheException - if an error occurs
Gets the result to the given request from the cache. The returned
AbstractResultCacheEntry is null if the
request is not present in the cache.
An invalid AbstractResultCacheEntry may be returned (it
means that the result is null) but the already parsed query
can be retrieved from the cache entry.
Parameters: request - an SQL select request Parameters: addToPendingQueries - true if the request must be addedto the pending query list on a cache miss the AbstractResultCacheEntry if found, elsenull
Do we need invalidation after an update request, given a
ControllerResultSet. Note that this method is meant to be used with unique
queries where the ControllerResultSet is the result of a pk selection (like
an Entity Bean).
Parameters: result - that could be in the cache Parameters: request - the update we want to get updated values from boolean[] {needInvalidate,needToSendQuery}
Removes an entry from the cache (both request and reply are dropped). The
request is NOT removed from the pending query list, but it shouldn't be in
this list.
Parameters: request - a SelectRequest
public void setPendingQueryTimeout(int pendingQueryTimeout)(Code)
Sets the pending query timeout in seconds.
Parameters: pendingQueryTimeout - the pending query timeout to set. See Also:ResultCache.getPendingQueryTimeout
Notifies the cache that this write request has been issued, so that cache
coherency can be maintained. If the cache is distributed, this method is
reponsible for broadcasting this information to other caches.
Parameters: request - an AbstractRequest value exception: CacheException - if an error occurs
Fields inherited from org.continuent.sequoia.controller.cache.result.AbstractResultCache