クラス org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry

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

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

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

説明

A CacheEntry represents a SQL select request with its reponse. The cache entry can have 3 states:

作者:
Emmanuel Cecchet
バージョン:
1.0

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

Public メソッド

 ResultCacheEntry (SelectRequest request, ControllerResultSet result)
abstract String getType ()
String getState ()
boolean isValid ()
boolean isDirty ()
SelectRequest getRequest ()
ControllerResultSet getResult ()
void setResult (ControllerResultSet result)
abstract void invalidate ()
void markDirty ()
void setValid ()
CacheEntry getNext ()
void setNext (CacheEntry next)
CacheEntry getPrev ()
void setPrev (CacheEntry prev)
abstract String[] toStringTable ()
int getSizeOfResult ()

Protected 変数

SelectRequest request
ControllerResultSet result
int state

Private 変数

CacheEntry next
CacheEntry prev


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

org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.ResultCacheEntry SelectRequest  request,
ControllerResultSet  result
 

Creates a new CacheEntry instance.

引数:
request a SelectRequest value
result a ControllerResultSet value
ResultCacheEntry.java61 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.next, org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.prev, と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

00062 { 00063 this.request = request; 00064 this.result = result; 00065 state = CACHE_VALID; 00066 next = null; 00067 prev = null; 00068 }


メソッド

CacheEntry org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getNext  ) 
 

Gets the value of next ResultCacheEntry in LRU.

戻り値:
value of next.

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

ResultCacheEntry.java177 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.next.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getFromCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.removeFromCache().

00178 { 00179 return next; 00180 }

CacheEntry org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getPrev  ) 
 

Gets the value of previous ResultCacheEntry in LRU.

戻り値:
value of previous.

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

ResultCacheEntry.java197 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.prev.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getFromCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.removeFromCache().

00198 { 00199 return prev; 00200 }

SelectRequest org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getRequest  ) 
 

Returns the SELECT request of this cache entry.

戻り値:
a SelectRequest value

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

ResultCacheEntry.java119 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.request.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getFromCache(), org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseTable.invalidateAllExceptPk(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), org.objectweb.cjdbc.controller.cache.result.ResultCache.removeOldest(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run().

00120 { 00121 return request; 00122 }

ControllerResultSet org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getResult  ) 
 

Returns the ControllerResultSet of the cached select request

戻り値:
a ControllerResultSet value

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

ResultCacheEntry.java129 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.result.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getFromCache(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.isUpdateNecessary(), と org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processWriteNotify().

00130 { 00131 return result; 00132 }

int org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getSizeOfResult  ) 
 

Size of the result in bytes

戻り値:
an integer

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

ResultCacheEntry.java224 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.result.

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.toStringTable().

00225 { 00226 try 00227 { 00228 return CJDBCStream.countBytes(result); 00229 } 00230 catch (Exception e) 00231 { 00232 return -1; 00233 } 00234 }

String org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getState  ) 
 

Get the state of this entry as a string

戻り値:
Valid or Dirty or Invalid

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

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

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isDirty(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isValid().

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxed.toStringTable(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager.toStringTable().

00083 { 00084 if (isValid()) 00085 return "Valid"; 00086 if (isDirty()) 00087 return "Dirty"; 00088 else 00089 return "Invalid"; 00090 }

abstract String org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getType  )  [pure virtual]
 

Get the type of this entry as a string

戻り値:
NoCache or Eager or Relaxed

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

org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager, org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryNoCache, と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxedで実装されています.

abstract void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.invalidate  )  [pure virtual]
 

Invalidates this cache entry (removes the ResultSet and turn state to CACHE_INVALID).

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

org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager, org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryNoCache, と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxedで実装されています.

参照元 org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseTable.invalidateAllExceptPk(), org.objectweb.cjdbc.controller.cache.result.ResultCache.removeOldest(), と org.objectweb.cjdbc.controller.cache.result.schema.CacheDatabaseTable.removePkResultCacheEntry().

boolean org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isDirty  ) 
 

Returns true if cache entry state is marked dirty (state is CACHE_DIRTY).

戻り値:
a boolean value

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

ResultCacheEntry.java109 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getState(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.RelaxedCacheThread.run().

00110 { 00111 return state == CACHE_DIRTY; 00112 }

boolean org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isValid  ) 
 

Return true if cache entry state is valid (state is CACHE_VALID).

戻り値:
a boolean value

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

ResultCacheEntry.java98 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.getFromCache(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getState(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.isUpdateNecessary(), org.objectweb.cjdbc.controller.cache.result.ResultCacheColumnUnique.processAddToCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.removeOldest().

00099 { 00100 return state == CACHE_VALID; 00101 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.markDirty  ) 
 

Marks this entry dirty (state becomes CACHE_DIRTY).

The ResultSet if not affected by this method.

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

ResultCacheEntry.java159 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

00160 { 00161 state = CACHE_DIRTY; 00162 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setNext CacheEntry  next  ) 
 

Sets the value of next ResultCacheEntry in LRU.

引数:
next value to assign to next.

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

ResultCacheEntry.java187 行で定義されています。

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

00188 { 00189 this.next = next; 00190 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setPrev CacheEntry  prev  ) 
 

Sets the value of previous ResultCacheEntry in LRU.

引数:
prev value to assign to prev.

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

ResultCacheEntry.java207 行で定義されています。

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

00208 { 00209 this.prev = prev; 00210 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setResult ControllerResultSet  result  ) 
 

Set a new ControllerResultSet of the cached select request (cache update).

The cache state is automatically set to valid (CACHE_VALID).

引数:
result a ControllerResultSet value

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

ResultCacheEntry.java142 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

参照元 org.objectweb.cjdbc.controller.cache.result.ResultCache.removeFromCache(), と org.objectweb.cjdbc.controller.cache.result.ResultCache.removeOldest().

00143 { 00144 this.result = result; 00145 state = CACHE_VALID; 00146 }

void org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setValid  ) 
 

Marks this entry valid (state becomes CACHE_VALID).

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

ResultCacheEntry.java167 行で定義されています。

参照先 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state.

00168 { 00169 state = CACHE_VALID; 00170 }

abstract String [] org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.toStringTable  )  [pure virtual]
 

Get data about this entry

戻り値:
an array [request,type,status(valid,notvalid,dirty),deadLine]

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

org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryEager, org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryNoCache, と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntryRelaxedで実装されています.

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


変数

CacheEntry org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.next [private]
 

ResultCacheEntry.java52 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getNext(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.ResultCacheEntry().

CacheEntry org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.prev [private]
 

ResultCacheEntry.java53 行で定義されています。

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getPrev(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.ResultCacheEntry().

SelectRequest org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.request [protected]
 

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

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getRequest().

ControllerResultSet org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.result [protected]
 

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

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getResult(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.getSizeOfResult().

int org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.state [protected]
 

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

参照元 org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isDirty(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.isValid(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.markDirty(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.ResultCacheEntry(), org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setResult(), と org.objectweb.cjdbc.controller.cache.result.entries.ResultCacheEntry.setValid().


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