Only read requests (SELECT
s) can be cached, there is no sense to cache writes as they do not provide any result to cache. However, the cache must be notified of the write queries in order to maintain cache coherency.
AbstractResultCache.java の 53 行で定義されています。
Public メソッド | |
int | getParsingGranularity () |
void | setParsingGranularity (int parsingGranularity) |
void | setDatabaseSchema (DatabaseSchema dbs) |
void | mergeDatabaseSchema (DatabaseSchema dbs) |
abstract void | addCachingRule (ResultCacheRule rule) |
abstract ResultCacheRule | getDefaultRule () |
abstract void | setDefaultRule (ResultCacheRule defaultRule) |
abstract void | addToCache (SelectRequest request, ControllerResultSet result) throws CacheException |
abstract CacheEntry | getFromCache (SelectRequest request, boolean addToPendingQueries) |
abstract void | removeFromCache (SelectRequest request) |
abstract void | removeFromPendingQueries (SelectRequest request) |
abstract void | writeNotify (AbstractWriteRequest request) throws CacheException |
abstract boolean | isUpdateNecessary (UpdateRequest request) throws CacheException |
abstract void | flushCache () |
abstract void | commit (long transactionId) throws CacheException |
abstract void | rollback (long transactionId) throws CacheException |
String | getXml () |
abstract String[][] | getCacheData () throws CacheException |
abstract String[][] | getCacheStatsData () throws CacheException |
abstract CacheStatistics | getCacheStatistics () |
abstract long | getCacheSize () |
Protected メソッド | |
abstract String | getXmlImpl () |
Protected 変数 | |
int | parsingGranularity = ParsingGranularities.NO_PARSING |
Static Protected 変数 | |
Trace | logger |
|
Add precise management and configuration of the cache behavior. A cache rule contains information on a query pattern and how to act if that pattern was matched.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Adds an entry request/reply to the cache. Note that if the request was already in the cache, its result must be updated in any case but the request must never appear twice in the cache.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Commit a transaction given its id.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Removes all entries from the cache. org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Returns the content of the cache as displayable array of array of string
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
参照元 org.objectweb.cjdbc.controller.monitoring.datacollector.DataCollector.retrieveCacheData(). |
|
Returns number of entries in the cache
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Returns pointer to the stats collector
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Returns a bunch of stats collected by the cache, such as cache hits.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
参照元 org.objectweb.cjdbc.controller.monitoring.datacollector.DataCollector.retrieveCacheStatsData(). |
|
Return the default cache rule
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Gets the result to the given request from the cache.
The returned
An invalid
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Gets the needed query parsing granularity.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで再定義されています。 AbstractResultCache.java の 84 行で定義されています。 参照先 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.parsingGranularity.
|
|
AbstractResultCache.java の 259 行で定義されています。 参照先 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.getXmlImpl().
|
|
Gets information about the request cache in xml
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
参照元 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.getXml(). |
|
Returns true if the cache does not contain the values that are given in the update statement.
org.objectweb.cjdbc.controller.cache.result.ResultCache, org.objectweb.cjdbc.controller.cache.result.ResultCacheColumn, org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique, org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase, と org.objectweb.cjdbc.controller.cache.result.ResultCacheTableで実装されています.
|
|
Merge the given
org.objectweb.cjdbc.controller.cache.result.ResultCacheで再定義されています。 AbstractResultCache.java の 118 行で定義されています。 参照先 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.logger.
|
|
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.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.invalidate(). |
|
Removes an entry from the pending query list.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Rollback a transaction given its id.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Sets the
org.objectweb.cjdbc.controller.cache.result.ResultCacheで再定義されています。 AbstractResultCache.java の 106 行で定義されています。 参照先 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.logger.
|
|
Set the default query rule
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
Sets the needed query parsing granularity.
|
|
Notifies the cache that the given 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.
org.objectweb.cjdbc.controller.cache.result.ResultCacheで実装されています.
|
|
初期値: Logger instance. AbstractResultCache.java の 71 行で定義されています。 参照元 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.mergeDatabaseSchema(), と org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.setDatabaseSchema(). |
|
Parsing granularity. Default is: org.objectweb.cjdbc.common.sql.ParsingGranularities#NO_PARSING. AbstractResultCache.java の 68 行で定義されています。 参照元 org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.getParsingGranularity(). |