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

org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase Class Reference

Inheritance diagram for org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ResultCacheDatabase (int maxEntries, int pendingTimeout)
boolean isUpdateNecessary (UpdateRequest request)
String getName ()

Protected Member Functions

void processAddToCache (CacheEntry qe)
void processWriteNotify (AbstractWriteRequest request)

Detailed Description

This is a query cache implementation with a database granularity:

Author:
Emmanuel Cecchet

Nicolas Modrzyk

Version:
1.0

Definition at line 44 of file ResultCacheDatabase.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase.ResultCacheDatabase int  maxEntries,
int  pendingTimeout
 

Builds a new ResultCache with a database granularity.

Parameters:
maxEntries maximum number of entries
pendingTimeout pending timeout for concurrent queries

Definition at line 53 of file ResultCacheDatabase.java.

00054   {
00055     super(maxEntries, pendingTimeout);
00056     parsingGranularity = ParsingGranularities.NO_PARSING;
00057   }


Member Function Documentation

String org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase.getName  )  [virtual]
 

See also:
org.objectweb.cjdbc.controller.cache.result.ResultCache.getName()

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

Definition at line 86 of file ResultCacheDatabase.java.

00087   {
00088     return "database";
00089   }

boolean org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase.isUpdateNecessary UpdateRequest  request  )  [virtual]
 

See also:
org.objectweb.cjdbc.controller.cache.result.AbstractResultCache.isUpdateNecessary(org.objectweb.cjdbc.common.sql.UpdateRequest)

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

Definition at line 70 of file ResultCacheDatabase.java.

00071   {
00072     return true;
00073   }

void org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase.processAddToCache CacheEntry  qe  )  [protected, virtual]
 

See also:
org.objectweb.cjdbc.controller.cache.result.ResultCache.processAddToCache

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

Definition at line 62 of file ResultCacheDatabase.java.

00063   {
00064     return;
00065   }

void org.objectweb.cjdbc.controller.cache.result.ResultCacheDatabase.processWriteNotify AbstractWriteRequest  request  )  [protected, virtual]
 

See also:
org.objectweb.cjdbc.controller.cache.result.ResultCache.processWriteNotify(org.objectweb.cjdbc.common.sql.AbstractWriteRequest)

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

Definition at line 78 of file ResultCacheDatabase.java.

References org.objectweb.cjdbc.controller.cache.result.ResultCache.flushCache().

00079   {
00080     flushCache();
00081   }


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