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

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.components.modules.database.AbstractAutoIncrementModule
All Implemented Interfaces:
Disposable, Component, Configurable, LogEnabled, AutoIncrementModule
Direct Known Subclasses:
ManualAutoIncrementModule

public abstract class AbstractAutoIncrementModule
extends AbstractLogEnabled
implements AutoIncrementModule, Configurable, Disposable

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

Version:
CVS $Id: AbstractAutoIncrementModule.html 1304258 2012-03-23 10:09:27Z ilgrosso $
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(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(Configuration conf)
               throws 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 Configurable
Throws:
ConfigurationException

dispose

public void dispose()
dispose

Specified by:
dispose in interface Disposable


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.