org.apache.cocoon.components.cron
Class DataSourceComponentConnectionProvider

java.lang.Object
  extended by org.apache.cocoon.components.cron.DataSourceComponentConnectionProvider
All Implemented Interfaces:
org.quartz.utils.ConnectionProvider

public class DataSourceComponentConnectionProvider
extends Object
implements org.quartz.utils.ConnectionProvider

Quartz database connection provider that uses the Excalibur DataSourceComponent service.


Constructor Summary
DataSourceComponentConnectionProvider(String dsName, ServiceManager manager)
           
 
Method Summary
 Connection getConnection()
           
 void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceComponentConnectionProvider

public DataSourceComponentConnectionProvider(String dsName,
                                             ServiceManager manager)
                                      throws ConfigurationException
Throws:
ConfigurationException
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Specified by:
getConnection in interface org.quartz.utils.ConnectionProvider
Throws:
SQLException

shutdown

public void shutdown()
              throws SQLException
Specified by:
shutdown in interface org.quartz.utils.ConnectionProvider
Throws:
SQLException


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