org.apache.cocoon.components.modules.database
Class AbstractAutoIncrementModule

java.lang.Object
  |
  +--org.apache.avalon.framework.logger.AbstractLogEnabled
        |
        +--org.apache.cocoon.components.modules.database.AbstractAutoIncrementModule
All Implemented Interfaces:
AutoIncrementModule, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.logger.LogEnabled
Direct Known Subclasses:
ManualAutoIncrementModule

public abstract class AbstractAutoIncrementModule
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements AutoIncrementModule, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.activity.Disposable

AbstractDatabaseModule gives you the infrastructure for easily deploying more AutoIncrementModules. In order to get at the Logger, use getLogger().

Version:
CVS $Id: AbstractAutoIncrementModule.java,v 1.2 2002/07/31 13:13:24 stephan Exp $
Author:
Christian Haul

Field Summary
protected  HashMap settings
          Stores (global) configuration parameters as key / value pairs.
 
Fields inherited from interface org.apache.cocoon.components.modules.database.AutoIncrementModule
ROLE
 
Constructor Summary
AbstractAutoIncrementModule()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configures the database access module.
 void dispose()
          dispose
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.components.modules.database.AutoIncrementModule
getPostValue, getPreValue, getSubquery, includeAsValue, includeInQuery
 

Field Detail

settings

protected HashMap settings
Stores (global) configuration parameters as key / value pairs.
Constructor Detail

AbstractAutoIncrementModule

public AbstractAutoIncrementModule()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Configures the database access module. Takes all elements nested in component declaration and stores them as key-value pairs in settings. Nested configuration option are not catered for. This way global configuration options can be used. For nested configurations override this function.
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable

dispose

public void dispose()
dispose
Specified by:
dispose in interface org.apache.avalon.framework.activity.Disposable


Copyright � 1999-2002 Apache Software Foundation. All Rights Reserved.