org.objectweb.cjdbc.controller.cache.result
Class ResultCacheFactory
java.lang.Object
org.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResultCacheFactory
public ResultCacheFactory()
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 parsingmaxEntries
- to the cachependingTimeout
- 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 tagoptions
- for different cache rules
- Returns:
- an instance of a cache behavior
Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.