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

すべてのメンバ一覧

説明

This class defines request cache granularities.

作者:
Emmanuel Cecchet

Nicolas Modrzyk

バージョン:
1.0

CachingGranularities.java36 行で定義されています。

Static Public メソッド

final String getGranularityName (int cacheGrain)
final String getGranularityXml (int cacheGrain)

Static Public 変数

final int DATABASE = 0
final int TABLE = 1
final int COLUMN = 2
final int COLUMN_UNIQUE = 3


メソッド

final String org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityName int  cacheGrain  )  [static]
 

Gets the name corresponding to a cache granularity level.

引数:
cacheGrain cache granularity level
戻り値:
the name of the granularity level
CachingGranularities.java69 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN, org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN_UNIQUE, org.objectweb.cjdbc.controller.cache.result.CachingGranularities.DATABASE, と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.TABLE.

00070 { 00071 switch (cacheGrain) 00072 { 00073 case DATABASE : 00074 return "DATABASE"; 00075 case TABLE : 00076 return "TABLE"; 00077 case COLUMN : 00078 return "COLUMN"; 00079 case COLUMN_UNIQUE : 00080 return "COLUMN_UNIQUE"; 00081 default : 00082 return "UNSUPPORTED"; 00083 } 00084 }

final String org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityXml int  cacheGrain  )  [static]
 

This method is needed to convert the value into the corresponding xml attribute value. If fails, returns noInvalidation granularity value so the xml retrieved can be used.

引数:
cacheGrain cache granularity level
戻り値:
the xml attribute value of the granularity level
CachingGranularities.java94 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN, org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN_UNIQUE, org.objectweb.cjdbc.controller.cache.result.CachingGranularities.DATABASE, と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.TABLE.

00095 { 00096 switch (cacheGrain) 00097 { 00098 case DATABASE : 00099 return DatabasesXmlTags.VAL_database; 00100 case TABLE : 00101 return DatabasesXmlTags.VAL_table; 00102 case COLUMN : 00103 return DatabasesXmlTags.VAL_column; 00104 case COLUMN_UNIQUE : 00105 return DatabasesXmlTags.VAL_columnUnique; 00106 default : 00107 return DatabasesXmlTags.VAL_noInvalidation; 00108 } 00109 }


変数

final int org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN = 2 [static]
 

Column granularity: entries in the cache are invalidated based on column dependencies. CachingGranularities.java54 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityName(), と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityXml().

final int org.objectweb.cjdbc.controller.cache.result.CachingGranularities.COLUMN_UNIQUE = 3 [static]
 

Column granularity with UNIQUE queries: same as COLUMN except that UNIQUE queries that selects a single row based on a key are invalidated only when needed. CachingGranularities.java61 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityName(), と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityXml().

final int org.objectweb.cjdbc.controller.cache.result.CachingGranularities.DATABASE = 0 [static]
 

Database granularity: entries in the cache are invalidated every time a write (INSERT/UPDATE/DELETE/DROP/...) is sent to the database. CachingGranularities.java42 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityName(), と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityXml().

final int org.objectweb.cjdbc.controller.cache.result.CachingGranularities.TABLE = 1 [static]
 

Table granularity: entries in the cache are invalidated based on table dependencies. CachingGranularities.java48 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityName(), と org.objectweb.cjdbc.controller.cache.result.CachingGranularities.getGranularityXml().


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