Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EagerCaching (long timeout)
CacheEntry getCacheEntry (SelectRequest sqlQuery, ControllerResultSet result, AbstractResultCache cache)
String getXml ()

Detailed Description

EagerCaching means that all entries in the cache are always coherent and any update query (insert,delete,update,...) will automatically invalidate the corresponding entry in the cache. This was the previous cache behavior for all queries

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 44 of file EagerCaching.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching.EagerCaching long  timeout  ) 
 

Define this CacheBehavior as EagerCaching

Definition at line 51 of file EagerCaching.java.

00052   {
00053     this.timeout = timeout;
00054   }


Member Function Documentation

CacheEntry org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching.getCacheEntry SelectRequest  sqlQuery,
ControllerResultSet  result,
AbstractResultCache  cache
[virtual]
 

See also:
org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getCacheEntry(SelectRequest, ControllerResultSet, AbstractResultCache)

Implements org.objectweb.cjdbc.controller.cache.result.CacheBehavior.

Definition at line 60 of file EagerCaching.java.

00062   {
00063     return new ResultCacheEntryEager(cache, sqlQuery, result, timeout);
00064   }

String org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching.getXml  )  [virtual]
 

See also:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()

Implements org.objectweb.cjdbc.controller.cache.result.CacheBehavior.

Definition at line 69 of file EagerCaching.java.

00070   {
00071     return "<" + DatabasesXmlTags.ELT_EagerCaching + "/>";
00072   }


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:03:36 2005 for C-JDBC by  doxygen 1.3.9.1