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

org.objectweb.cjdbc.controller.cache.result.ResultCacheRuleのコラボレーション図

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

説明

This is the to define cache rules in the cache. A ResultCacheRule is defined by a queryPattern, set to 'default' if default rule, and a CacheBehavior.

作者:
Nicolas Modrzyk

Emmanuel Cecchet

バージョン:
1.0

ResultCacheRule.java42 行で定義されています。

Public メソッド

 ResultCacheRule (String queryString, boolean caseSensitive, boolean applyToSkeleton, long timestampResolution) throws RESyntaxException
RE getQueryPattern ()
CacheBehavior getCacheBehavior ()
void setCacheBehavior (CacheBehavior behavior)
long getTimestampResolution ()
CacheBehavior matches (AbstractRequest request)
String getXml ()

変数

Trace logger = Trace.getLogger(ResultCacheRule.class.getName())

Private 変数

RE queryPattern
String queryString
boolean isCaseSensitive
boolean applyToSkeleton
long timestampResolution
CacheBehavior behavior


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

org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.ResultCacheRule String  queryString,
boolean  caseSensitive,
boolean  applyToSkeleton,
long  timestampResolution
throws RESyntaxException
 

Creates a new ResultCacheRule

引数:
queryString for this rule
caseSensitive true if matching is case sensitive
applyToSkeleton true if rule apply to query skeleton
timestampResolution timestamp resolution for NOW() macro
例外:
RESyntaxException if the query pattern is invalid
ResultCacheRule.java61 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.applyToSkeleton, org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryPattern, org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryString, と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.timestampResolution.

00067 { 00068 this.queryString = queryString; 00069 queryPattern = new RE(queryString); 00070 this.isCaseSensitive = caseSensitive; 00071 this.applyToSkeleton = applyToSkeleton; 00072 this.timestampResolution = timestampResolution; 00073 }


メソッド

CacheBehavior org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getCacheBehavior  ) 
 

Get the cache behavior

戻り値:
the CacheBehavior for this ResultCacheRule
ResultCacheRule.java90 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.behavior.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getCacheBehavior().

00091 { 00092 return behavior; 00093 }

RE org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getQueryPattern  ) 
 

Get the query pattern

戻り値:
the queryPattern for this ResultCacheRule
ResultCacheRule.java80 行で定義されています。
00081 { 00082 return this.queryPattern; 00083 }

long org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getTimestampResolution  ) 
 

Retrieve the timestamp resolution of this scheduler

戻り値:
timestampResolution
ResultCacheRule.java110 行で定義されています。
00111 { 00112 return this.timestampResolution; 00113 }

String org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml  ) 
 

参照:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()
ResultCacheRule.java132 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.applyToSkeleton, org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.behavior, org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getXml(), org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.isCaseSensitive, org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryString, と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.timestampResolution.

00133 { 00134 StringBuffer info = new StringBuffer(); 00135 info.append( 00136 "<" 00137 + DatabasesXmlTags.ELT_ResultCacheRule 00138 + " " 00139 + DatabasesXmlTags.ATT_queryPattern 00140 + "=\"" 00141 + queryString 00142 + "\" " 00143 + DatabasesXmlTags.ATT_caseSensitive 00144 + "=\"" 00145 + isCaseSensitive 00146 + "\" " 00147 + DatabasesXmlTags.ATT_applyToSkeleton 00148 + "=\"" 00149 + applyToSkeleton 00150 + "\" " 00151 + DatabasesXmlTags.ATT_timestampResolution 00152 + "=\"" 00153 + timestampResolution / 1000 00154 + "\" >"); 00155 info.append(behavior.getXml()); 00156 info.append("</" + DatabasesXmlTags.ELT_ResultCacheRule + ">"); 00157 return info.toString(); 00158 }

CacheBehavior org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.matches AbstractRequest  request  ) 
 

引数:
request we may want to add to the cache
戻り値:
the behavior to get the entry
ResultCacheRule.java119 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.behavior, org.objectweb.cjdbc.common.sql.AbstractRequest.getSQL(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryPattern.

00120 { 00121 if (queryPattern.match(request.getSQL())) 00122 { 00123 return behavior; 00124 } 00125 else 00126 return null; 00127 }

void org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.setCacheBehavior CacheBehavior  behavior  ) 
 

Set the cache behavior

引数:
behavior behavior for this rule
ResultCacheRule.java100 行で定義されています。
00101 { 00102 this.behavior = behavior; 00103 }


変数

boolean org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.applyToSkeleton [private]
 

ResultCacheRule.java48 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.ResultCacheRule().

CacheBehavior org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.behavior [private]
 

ResultCacheRule.java50 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getCacheBehavior(), org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.matches().

boolean org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.isCaseSensitive [private]
 

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

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml().

Trace org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.logger = Trace.getLogger(ResultCacheRule.class.getName()) [package]
 

ResultCacheRule.java44 行で定義されています。

RE org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryPattern [private]
 

ResultCacheRule.java45 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.matches(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.ResultCacheRule().

String org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.queryString [private]
 

ResultCacheRule.java46 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.ResultCacheRule().

long org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.timestampResolution [private]
 

ResultCacheRule.java49 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.ResultCacheRule().


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