|
||||||||||
| 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
public class 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, DEFAULT_SCHEMA_KEY, DEFAULTS_KEY, POOL_KEY, SCHEMA_KEY |
| Fields inherited from interface org.apache.torque.dsfactory.DataSourceFactory |
|---|
DSFACTORY_KEY, FACTORY_KEY |
| Constructor Summary | |
|---|---|
PerUserPoolDataSourceFactory()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the pool associated with this factory and releases it. |
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, getSchema, initCPDS, setProperty, setSchema |
| 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 DataSourceFactorygetDataSource in class AbstractDataSourceFactoryDataSource configured by the factory.DataSourceFactory.getDataSource()
public void initialize(org.apache.commons.configuration.Configuration configuration)
throws TorqueException
AbstractDataSourceFactory
initialize in interface DataSourceFactoryinitialize in class AbstractDataSourceFactoryconfiguration - 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)
public void close()
throws TorqueException
TorqueException - if the pool cannot be closed properly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||