org.bibop.xml.xforge.components.sql
Class SQLComponent

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
        |
        +--org.bibop.xml.xforge.components.AbstractXForgePoolableComponent
              |
              +--org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
                    |
                    +--org.bibop.xml.xforge.components.sql.SQLComponent
All Implemented Interfaces:
AutomatedComponent, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, XForgeComponent, XMLProducer

public class SQLComponent
extends AbstractAutomatedComponent


Field Summary
protected  ConnectionPool connectionPool
           
protected  java.lang.String driver
           
protected  boolean handleErrorsInternally
           
protected  java.lang.String password
           
protected  java.lang.String url
           
protected  java.lang.String user
           
 
Fields inherited from class org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
methodName, methods
 
Fields inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
contentHandler, context, lexicalHandler, log, parameters, po
 
Constructor Summary
SQLComponent()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration config)
           
 void execute(ParameterValue pQuery)
          the method that runs the component
protected  java.sql.Connection getConnection()
           
protected  void releaseConnection(java.sql.Connection connection)
           
 
Methods inherited from class org.bibop.xml.xforge.components.automation.AbstractAutomatedComponent
executeMethod, setMethod, toSax
 
Methods inherited from class org.bibop.xml.xforge.components.AbstractXForgeComponent
enableLogging, getActivePrefixes, output, output, setConsumer, setContentHandler, setLexicalHandler, setParameters, setParentPrefixesMonitor, setProcessingOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bibop.xml.xforge.components.XForgeComponent
setParameters, setProcessingOptions
 
Methods inherited from interface org.bibop.xml.XMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from interface org.bibop.xml.xforge.PrefixesMonitor
getActivePrefixes, setParentPrefixesMonitor
 
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled
enableLogging
 

Field Detail

url

protected java.lang.String url

user

protected java.lang.String user

password

protected java.lang.String password

driver

protected java.lang.String driver

handleErrorsInternally

protected boolean handleErrorsInternally

connectionPool

protected ConnectionPool connectionPool
Constructor Detail

SQLComponent

public SQLComponent()
Method Detail

configure

public void configure(org.apache.avalon.framework.configuration.Configuration config)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class AbstractXForgeComponent
org.apache.avalon.framework.configuration.ConfigurationException

execute

public void execute(ParameterValue pQuery)
             throws org.xml.sax.SAXException
the method that runs the component

Throws:
org.xml.sax.SAXException

getConnection

protected java.sql.Connection getConnection()
                                     throws java.lang.Exception
java.lang.Exception

releaseConnection

protected void releaseConnection(java.sql.Connection connection)


Copyright 2003 Bibop Research International. All Rights Reserved.