# Uses of Interface
org.apache.torque.dsfactory.DataSourceFactory

Packages that use DataSourceFactory
Package
Description
org.apache.torque
Torque is an object-relational mapper for Java.
org.apache.torque.dsfactory
Torque's API for creation of various javax.sql.DataSource implementations.

- ## Uses of DataSourceFactory in org.apache.torque

  Methods in org.apache.torque that return DataSourceFactory
  Modifier and Type
  Method
  Description
  `DataSourceFactory`
  Database.`getDataSourceFactory()`
  Returns the DataSourceFactory for this database.
  `DataSourceFactory`
  TorqueInstance.`getDataSourceFactory(String name)`
  Returns the DataSourceFactory for the database with the name `name`.
  Methods in org.apache.torque with parameters of type DataSourceFactory
  Modifier and Type
  Method
  Description
  `void`
  Database.`setDataSourceFactory(DataSourceFactory aDataSourceFactory)`
  Sets the DataSourceFactory for this database.

- ## Uses of DataSourceFactory in org.apache.torque.dsfactory

  Classes in org.apache.torque.dsfactory that implement DataSourceFactory
  Modifier and Type
  Class
  Description
  `class`
  `AbstractDataSourceFactory`
  A class that contains common functionality of the factories in this package.
  `class`
  `JndiDataSourceFactory`
  A factory that looks up the DataSource from JNDI.
  `class`
  `PerUserPool2DataSourceFactory`
  A factory that looks up the DataSource using the DBCP2 pool methods.
  `class`
  `SharedPool2DataSourceFactory`
  A factory that looks up the DataSource using the DBCP2 pool methods.