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

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

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

String getType ()
abstract CacheEntry getCacheEntry (SelectRequest sqlQuery, ControllerResultSet result, AbstractResultCache cache)
abstract String getXml ()

Package Attributes

Trace logger = Trace.getLogger(CacheBehavior.class.getName())

Detailed Description

Abstract class for the different cache actions. We need this class for adding versatility in the parameters of each Caching action.

Author:
Nicolas Modrzyk

Emmanuel Cecchet

Version:
1.0

Definition at line 41 of file CacheBehavior.java.


Member Function Documentation

abstract CacheEntry org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getCacheEntry SelectRequest  sqlQuery,
ControllerResultSet  result,
AbstractResultCache  cache
[pure virtual]
 

Builds a cache entry from a SelectRequest and a ControllerResultSet. This cache entry can then be inserted in the cache.

Parameters:
sqlQuery entry to add in the cache
result value to add in the cache
cache reference for EagerCaching in case the entry needs to remove itself from the cache.
Returns:
the query cache entry to add to the cache

Implemented in org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching, org.objectweb.cjdbc.controller.cache.result.rules.NoCaching, and org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.

Referenced by org.objectweb.cjdbc.controller.cache.result.ResultCache.addToCache().

String org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getType  ) 
 

The name of the class instance

Returns:
class name of the current type

Definition at line 55 of file CacheBehavior.java.

00056   {
00057     return this.getClass().getName();
00058   }

abstract String org.objectweb.cjdbc.controller.cache.result.CacheBehavior.getXml  )  [pure virtual]
 

Implementation specific xml dump of the cache behavior.

Returns:
xml dump of the cache behavior
See also:
org.objectweb.cjdbc.common.xml.XmlComponent.getXml()

Implemented in org.objectweb.cjdbc.controller.cache.result.rules.EagerCaching, org.objectweb.cjdbc.controller.cache.result.rules.NoCaching, and org.objectweb.cjdbc.controller.cache.result.rules.RelaxedCaching.

Referenced by org.objectweb.cjdbc.controller.cache.result.ResultCacheRule.getXml().


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