org.apache.torque.dsfactory
Class TorqueDataSourceFactory

java.lang.Object
  extended byorg.apache.torque.dsfactory.AbstractDataSourceFactory
      extended byorg.apache.torque.dsfactory.TorqueDataSourceFactory
All Implemented Interfaces:
DataSourceFactory

Deprecated. as of version 3.1, use SharedPoolDataSourceFactory

public class TorqueDataSourceFactory
extends AbstractDataSourceFactory
implements DataSourceFactory

A factory that uses the "old" Torque Pools for fetching a DataSource.

Version:
$Id: TorqueDataSourceFactory.java,v 1.13.2.3 2004/05/20 04:35:14 seade Exp $
Author:
John McNally, Henning P. Schmiedehausen

Field Summary
 
Fields inherited from class org.apache.torque.dsfactory.AbstractDataSourceFactory
CONNECTION_KEY, DEFAULT_CONNECTION_KEY, DEFAULT_POOL_KEY, POOL_KEY
 
Constructor Summary
TorqueDataSourceFactory()
          Deprecated.  
 
Method Summary
 javax.sql.DataSource getDataSource()
          Deprecated.  
 void initialize(org.apache.commons.configuration.Configuration configuration)
          Deprecated. Initialize the factory.
protected  TorqueClassicDataSource initTorqueClassic(org.apache.commons.configuration.Configuration configuration)
          Deprecated. Initializes the TorqueClassicDataSource.
 
Methods inherited from class org.apache.torque.dsfactory.AbstractDataSourceFactory
applyConfiguration, initCPDS, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueDataSourceFactory

public TorqueDataSourceFactory()
Deprecated. 
Method Detail

getDataSource

public javax.sql.DataSource getDataSource()
Deprecated. 
Specified by:
getDataSource in interface DataSourceFactory
Returns:
the DataSource configured by the factory.
See Also:
DataSourceFactory.getDataSource()

initialize

public void initialize(org.apache.commons.configuration.Configuration configuration)
                throws TorqueException
Deprecated. 
Description copied from interface: DataSourceFactory
Initialize the factory.

Specified by:
initialize in interface DataSourceFactory
Parameters:
configuration - where to load the factory settings from
Throws:
TorqueException - Any exceptions caught during processing will be rethrown wrapped into a TorqueException.
See Also:
DataSourceFactory.initialize(org.apache.commons.configuration.Configuration)

initTorqueClassic

protected TorqueClassicDataSource initTorqueClassic(org.apache.commons.configuration.Configuration configuration)
                                             throws TorqueException
Deprecated. 
Initializes the TorqueClassicDataSource.

Parameters:
configuration - where to read the settings from
Returns:
a configured TorqueClassicDataSource
Throws:
TorqueException - if a property set fails


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.