Class HSQLDiskCacheFactory
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheFactory
org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCacheFactory
org.apache.commons.jcs3.auxiliary.disk.jdbc.hsql.HSQLDiskCacheFactory
- All Implemented Interfaces:
- AuxiliaryCacheFactory,- IRequireScheduler
This factory should create hsql disk caches.
- 
Field SummaryFields inherited from class org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCacheFactoryATTRIBUTE_PREFIX, POOL_CONFIGURATION_PREFIX, scheduler
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescription<K,V> JDBCDiskCache<K, V> createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) This factory method should create an instance of the hsqlcache.protected voidsetupDatabase(DataSource ds, JDBCDiskCacheAttributes attributes) Creates the table if it doesn't existprotected voidsetupTable(Connection cConn, String tableName) SETUP TABLE FOR CACHEMethods inherited from class org.apache.commons.jcs3.auxiliary.disk.jdbc.JDBCDiskCacheFactorycreateShrinkerWhenNeeded, dispose, getDataSourceFactory, getScheduledExecutorService, getTableState, initialize, setScheduledExecutorServiceMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheFactorygetName, setName
- 
Constructor Details- 
HSQLDiskCacheFactorypublic HSQLDiskCacheFactory()
 
- 
- 
Method Details- 
createCachepublic <K,V> JDBCDiskCache<K,V> createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager compositeCacheManager, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer) throws SQLException This factory method should create an instance of the hsqlcache.- Specified by:
- createCachein interface- AuxiliaryCacheFactory
- Overrides:
- createCachein class- JDBCDiskCacheFactory
- Parameters:
- rawAttr-
- compositeCacheManager-
- cacheEventLogger-
- elementSerializer-
- Returns:
- JDBCDiskCache
- Throws:
- SQLException- if the creation of the cache instance fails
 
- 
setupDatabaseCreates the table if it doesn't exist- Parameters:
- ds- Data Source
- attributes- Cache region configuration
- Throws:
- SQLException
 
- 
setupTableSETUP TABLE FOR CACHE- Parameters:
- cConn-
- tableName-
- Throws:
- SQLException
 
 
-