src/org/objectweb/cjdbc/controller/cache/result/rules/RelaxedCaching.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.controller.cache.result.rules; 00026 00027 import org.objectweb.cjdbc.common.sql.SelectRequest; 00028 import org.objectweb.cjdbc.common.xml.DatabasesXmlTags; 00029 import org.objectweb.cjdbc.controller.cache.result.AbstractResultCache; 00030 import org.objectweb.cjdbc.controller.cache.result.CacheBehavior; 00031 import org.objectweb.cjdbc.controller.cache.result.entries.CacheEntry; 00032 import org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed; 00033 import org.objectweb.cjdbc.controller.virtualdatabase.ControllerResultSet; 00034 00050 public class RelaxedCaching extends CacheBehavior 00051 { 00052 private long timeout; 00053 private boolean keepIfNotDirty; 00054 00061 public RelaxedCaching(boolean keepIfNotDirty, long timeout) 00062 { 00063 this.keepIfNotDirty = keepIfNotDirty; 00064 this.timeout = timeout; 00065 } 00066 00071 public CacheEntry getCacheEntry(SelectRequest sqlQuery, 00072 ControllerResultSet result, AbstractResultCache cache) 00073 { 00074 return new ResultCacheEntryRelaxed(sqlQuery, result, timeout, 00075 keepIfNotDirty); 00076 } 00077 00081 public String getXml() 00082 { 00083 return "<" + DatabasesXmlTags.ELT_RelaxedCaching + " " 00084 + DatabasesXmlTags.ATT_timeout + "=\"" + timeout / 1000 + "\" " 00085 + DatabasesXmlTags.ATT_keepIfNotDirty + "=\"" + keepIfNotDirty + "\"/>"; 00086 } 00087 00088 }

CJDBCversion1.0.4に対してTue Oct 12 15:16:00 2004に生成されました。 doxygen 1.3.8