クラス org.objectweb.cjdbc.controller.cache.result.ResultCacheTable

org.objectweb.cjdbc.controller.cache.result.ResultCacheTableに対する継承グラフ

Inheritance graph
[凡例]
org.objectweb.cjdbc.controller.cache.result.ResultCacheTableのコラボレーション図

Collaboration graph
[凡例]
すべてのメンバ一覧

説明

This is a query cache implementation with a table granularity:

作者:
Emmanuel Cecchet

Nicolas Modrzyk

バージョン:
1.0

ResultCacheTable.java47 行で定義されています。

Public メソッド

 ResultCacheTable (int maxEntries, int pendingTimeout)
boolean isUpdateNecessary (UpdateRequest request)
String getName ()

Protected メソッド

void processAddToCache (CacheEntry qe)
void processWriteNotify (AbstractWriteRequest request)


コンストラクタとデストラクタ

org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.ResultCacheTable int  maxEntries,
int  pendingTimeout
 

Builds a new ResultCache with a table granularity.

引数:
maxEntries maximum number of entries
pendingTimeout pending timeout for concurrent queries
ResultCacheTable.java55 行で定義されています。
00056 { 00057 super(maxEntries, pendingTimeout); 00058 parsingGranularity = ParsingGranularities.TABLE; 00059 }


メソッド

String org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.getName  )  [virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.ResultCache.getName()

org.objectweb.cjdbc.controller.cache.result.ResultCacheを実装しています.

ResultCacheTable.java99 行で定義されています。

00100 { 00101 return "table"; 00102 }

boolean org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.isUpdateNecessary UpdateRequest  request  )  [virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.isUpdateNecessary(org.objectweb.cjdbc.common.sql.UpdateRequest)

org.objectweb.cjdbc.controller.cache.result.ResultCacheを実装しています.

ResultCacheTable.java74 行で定義されています。

00075 { 00076 return true; 00077 }

void org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.processAddToCache CacheEntry  qe  )  [protected, virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.ResultCache.processAddToCache

org.objectweb.cjdbc.controller.cache.result.ResultCacheを実装しています.

ResultCacheTable.java64 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseTable.addCacheEntry(), org.objectweb.cjdbc.common.sql.SelectRequest.getFrom(), org.objectweb.cjdbc.controller.cache.result.entries.CacheEntry.getRequest(), と org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseSchema.getTable().

00065 { 00066 SelectRequest request = qe.getRequest(); 00067 for (Iterator i = request.getFrom().iterator(); i.hasNext();) 00068 cdbs.getTable((String) i.next()).addCacheEntry(qe); 00069 }

void org.objectweb.cjdbc.controller.cache.result.ResultCacheTable.processWriteNotify AbstractWriteRequest  request  )  [protected, virtual]
 

参照:
org.objectweb.cjdbc.controller.cache.result.ResultCache.processWriteNotify(org.objectweb.cjdbc.common.sql.AbstractWriteRequest)

org.objectweb.cjdbc.controller.cache.result.ResultCacheを実装しています.

ResultCacheTable.java82 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.ResultCache.flushCache(), org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseSchema.getTable(), org.objectweb.cjdbc.common.sql.AbstractWriteRequest.getTableName(), org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseTable.invalidateAll(), と org.objectweb.cjdbc.common.log.Trace.warn().

00083 { 00084 CacheDatabaseTable cdt = cdbs.getTable(request.getTableName()); 00085 00086 if (cdt != null) 00087 cdt.invalidateAll(); 00088 else 00089 { 00090 logger.warn("Table " + request.getTableName() 00091 + " not found in cache schema. Flushing whole cache."); 00092 flushCache(); 00093 } 00094 }


このクラスの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:38 2004に生成されました。 doxygen 1.3.8