|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.torque.dsfactory.AbstractDataSourceFactory
org.apache.torque.dsfactory.PerUserPoolDataSourceFactory
A factory that looks up the DataSource using the JDBC2 pool methods.
Field Summary |
Fields inherited from class org.apache.torque.dsfactory.AbstractDataSourceFactory |
CONNECTION_KEY, DEFAULT_CONNECTION_KEY, DEFAULT_POOL_KEY, POOL_KEY |
Constructor Summary | |
PerUserPoolDataSourceFactory()
|
Method Summary | |
javax.sql.DataSource |
getDataSource()
|
void |
initialize(org.apache.commons.configuration.Configuration configuration)
Initialize the factory. |
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 |
public PerUserPoolDataSourceFactory()
Method Detail |
public javax.sql.DataSource getDataSource()
getDataSource
in interface DataSourceFactory
DataSource
configured by the factory.DataSourceFactory.getDataSource()
public void initialize(org.apache.commons.configuration.Configuration configuration) throws TorqueException
DataSourceFactory
initialize
in interface DataSourceFactory
configuration
- where to load the factory settings from
TorqueException
- Any exceptions caught during processing will be
rethrown wrapped into a TorqueException.DataSourceFactory.initialize(org.apache.commons.configuration.Configuration)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |