org.cid.distribution.plugins.db
Class QueryDataComponent

java.lang.Object
  extended by org.cid.distribution.base.DistributionComponentBase
      extended by org.cid.distribution.plugins.db.QueryDataComponent
All Implemented Interfaces:
DistributionContextAware, DistributionComponent, DataProvider

public final class QueryDataComponent
extends DistributionComponentBase
implements DataProvider

Version:
$Revision:111 $

Constructor Summary
QueryDataComponent()
          Class constructor.
 
Method Summary
static void addRules(org.apache.commons.digester.Digester d, java.lang.String patternPrefix)
          Configures additional rules for the commons-digester library.
 void destroy()
          When destroyed, this component logs information about the process.
 ConnectionProvider getConnectionProvider()
           
 DataEnumeration getData()
          Returns a DataEnumeration from the query results.
 java.lang.String getQuery()
           
 void init()
          Initializes the ConnectionComponent.
 void setConnectionProvider(java.lang.String connectionProvider)
           
 void setQuery(java.lang.String query)
           
 
Methods inherited from class org.cid.distribution.base.DistributionComponentBase
getId, setDistributionContext, setId
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryDataComponent

public QueryDataComponent()
Class constructor.

Method Detail

addRules

public static void addRules(org.apache.commons.digester.Digester d,
                            java.lang.String patternPrefix)
Configures additional rules for the commons-digester library.


init

public void init()
          throws DistributionProcessingException,
                 DistributionConfigurationException
Initializes the ConnectionComponent.

Specified by:
init in interface DistributionComponent
Overrides:
init in class DistributionComponentBase
Throws:
DistributionProcessingException
DistributionConfigurationException
See Also:
DistributionComponentBase.init()

destroy

public void destroy()
             throws DistributionProcessingException,
                    DistributionConfigurationException
When destroyed, this component logs information about the process.

Specified by:
destroy in interface DistributionComponent
Overrides:
destroy in class DistributionComponentBase
Throws:
DistributionProcessingException
DistributionConfigurationException

getQuery

public java.lang.String getQuery()
Returns:
Returns the query.

setQuery

public void setQuery(java.lang.String query)
Parameters:
query - The query to set.

setConnectionProvider

public void setConnectionProvider(java.lang.String connectionProvider)
Parameters:
connection - The connection to set.

getConnectionProvider

public ConnectionProvider getConnectionProvider()
Returns:
Returns the connection component reference.

getData

public DataEnumeration getData()
                        throws DistributionProcessingException
Returns a DataEnumeration from the query results.

Specified by:
getData in interface DataProvider
Returns:
Throws:
DistributionProcessingException


Copyright © 2006 null. All Rights Reserved.