org.objectweb.cjdbc.controller.cache.result
Class ResultCacheFactory

java.lang.Object
  extended byorg.objectweb.cjdbc.controller.cache.result.ResultCacheFactory

public class ResultCacheFactory
extends java.lang.Object

Create a cache that conforms to AbstractResultCache, that is implementation independant

Author:
Nicolas Modrzyk

Constructor Summary
ResultCacheFactory()
           
 
Method Summary
static CacheBehavior getCacheBehaviorInstance(java.lang.String behaviorString, java.util.Hashtable options)
          Get an instance of a cache behavior for this cache
static AbstractResultCache getCacheInstance(int granularityValue, int maxEntries, int pendingTimeout)
          Get an instance of the current cache implementation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultCacheFactory

public ResultCacheFactory()
Method Detail

getCacheInstance

public static AbstractResultCache getCacheInstance(int granularityValue,
                                                   int maxEntries,
                                                   int pendingTimeout)
                                            throws java.lang.InstantiationException
Get an instance of the current cache implementation

Parameters:
granularityValue - of the parsing
maxEntries - to the cache
pendingTimeout - before pending query timeout
Returns:
ResultCache implementation of the AbstractResultCache
Throws:
java.lang.InstantiationException - if parsing granularity is not valid

getCacheBehaviorInstance

public static CacheBehavior getCacheBehaviorInstance(java.lang.String behaviorString,
                                                     java.util.Hashtable options)
Get an instance of a cache behavior for this cache

Parameters:
behaviorString - representation of this cache behavior, xml tag
options - for different cache rules
Returns:
an instance of a cache behavior


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.