Class DriverJdbcDataSourceInfo

All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource, DataSourceInfo

public class DriverJdbcDataSourceInfo extends AbstractJdbcDataSource
Collects the info required to instantiate a DataSource from a JDBC Driver Provides the DataSourceInfo factory method getDataSource which instantiates the DataSource
Author:
dberry
  • Constructor Details

    • DriverJdbcDataSourceInfo

      public DriverJdbcDataSourceInfo(String driver, String url, int fetchSize, int batchSize) throws CpoException
      Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
      Parameters:
      driver - The text name of the driver
      url - - The url that points to the database.
      fetchSize - The fetchSize for the datasource
      batchSize - The batchSize used to update the datasource
      Throws:
      CpoException - - Any errors encountered loading the driver
    • DriverJdbcDataSourceInfo

      public DriverJdbcDataSourceInfo(String driver, String url, Properties properties, int fetchSize, int batchSize) throws CpoException
      Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
      Parameters:
      driver - The text name of the driver
      url - - The url that points to the database.
      properties - - The connection properties for connecting to the database
      fetchSize - The fetchSize for the datasource
      batchSize - The batchSize used to update the datasource
      Throws:
      CpoException - - Any errors encountered loading the driver
    • DriverJdbcDataSourceInfo

      public DriverJdbcDataSourceInfo(String driver, String url, String username, String password, int fetchSize, int batchSize) throws CpoException
      Creates a DriverJdbcDataSourceInfo from a Jdbc Driver
      Parameters:
      driver - The text name of the driver
      url - - The url that points to the database.
      username - - The username for connecting to the database
      password - - The password for connecting to the database
      fetchSize - The fetchSize for the datasource
      batchSize - The batchSize used to update the datasource
      Throws:
      CpoException - - Any errors encountered loading the driver
  • Method Details