org.apache.jcs.auxiliary.disk.jdbc.hsql
Class HSQLDiskCacheFactory

java.lang.Object
  extended by org.apache.jcs.auxiliary.disk.jdbc.hsql.HSQLDiskCacheFactory
All Implemented Interfaces:
AuxiliaryCacheFactory

public class HSQLDiskCacheFactory
extends java.lang.Object
implements AuxiliaryCacheFactory

This factory should create mysql disk caches.

Author:
Aaron Smuts

Constructor Summary
HSQLDiskCacheFactory()
           
 
Method Summary
 AuxiliaryCache createCache(AuxiliaryCacheAttributes rawAttr, ICompositeCacheManager arg1, ICacheEventLogger cacheEventLogger, IElementSerializer elementSerializer)
          This factory method should create an instance of the mysqlcache.
 java.lang.String getName()
          Returns the display name
 void setName(java.lang.String nameArg)
          The name of the factory.
protected  void setupDatabase(JDBCDiskCacheAttributes attributes)
          Creates the database if it doesn't exist, registers the driver class, etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSQLDiskCacheFactory

public HSQLDiskCacheFactory()
Method Detail

createCache

public AuxiliaryCache createCache(AuxiliaryCacheAttributes rawAttr,
                                  ICompositeCacheManager arg1,
                                  ICacheEventLogger cacheEventLogger,
                                  IElementSerializer elementSerializer)
This factory method should create an instance of the mysqlcache.

Specified by:
createCache in interface AuxiliaryCacheFactory
Parameters:
rawAttr -
arg1 -
cacheEventLogger -
elementSerializer -
Returns:
AuxiliaryCache

setName

public void setName(java.lang.String nameArg)
The name of the factory.

Specified by:
setName in interface AuxiliaryCacheFactory
Parameters:
nameArg -

getName

public java.lang.String getName()
Returns the display name

Specified by:
getName in interface AuxiliaryCacheFactory
Returns:
name

setupDatabase

protected void setupDatabase(JDBCDiskCacheAttributes attributes)
                      throws java.lang.Exception
Creates the database if it doesn't exist, registers the driver class, etc.

Parameters:
attributes -
Throws:
java.lang.Exception


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.