src/org/objectweb/cjdbc/controller/cache/result/entries/ResultCacheEntryRelaxed.java

説明を見る。
00001 00025 package org.objectweb.cjdbc.controller.cache.result.entries; 00026 00027 import java.util.Date; 00028 00029 import org.objectweb.cjdbc.common.sql.SelectRequest; 00030 import org.objectweb.cjdbc.controller.virtualdatabase.ControllerResultSet; 00031 00039 public class ResultCacheEntryRelaxed extends ResultCacheEntry 00040 { 00041 private long timeout; 00042 private long deadline; 00043 private boolean keepIfNotDirty; 00044 00054 public ResultCacheEntryRelaxed(SelectRequest request, 00055 ControllerResultSet result, long timeout, boolean keepIfNotDirty) 00056 { 00057 super(request, result); 00058 this.timeout = timeout; 00059 this.deadline = System.currentTimeMillis() + timeout; 00060 this.keepIfNotDirty = keepIfNotDirty; 00061 } 00062 00066 public void invalidate() 00067 { 00068 state = CACHE_DIRTY; 00069 } 00070 00074 public String getType() 00075 { 00076 return "Relaxed"; 00077 } 00078 00084 public long getDeadline() 00085 { 00086 return deadline; 00087 } 00088 00094 public void setDeadline(long deadline) 00095 { 00096 this.deadline = deadline; 00097 } 00098 00104 public long getTimeout() 00105 { 00106 return timeout; 00107 } 00108 00112 public String[] toStringTable() 00113 { 00114 return new String[]{request.getSQL(), getType(), getState(), 00115 new Date(getDeadline()).toString(), "" + getSizeOfResult()}; 00116 } 00117 00124 public boolean getKeepIfNotDirty() 00125 { 00126 return keepIfNotDirty; 00127 } 00128 00129 }

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