Class DefaultConnectionPoolFactory.DriverManagerDataSource

java.lang.Object
org.datanucleus.store.rdbms.connectionpool.DefaultConnectionPoolFactory.DriverManagerDataSource
All Implemented Interfaces:
Wrapper, CommonDataSource, DataSource
Enclosing class:
DefaultConnectionPoolFactory

public static class DefaultConnectionPoolFactory.DriverManagerDataSource extends Object implements DataSource
Wrapper to the JDBC DataSource class. Provides checking for driver class existence, and utility methods for obtaining a connection.

It should be noted that setting the log writer and login timeout will apply to DriverManager and NOT to the Data Source on its own. If you have 2 or more DataSource's they will have THE SAME log writer and login timeout.

  • Field Details

    • driverName

      private final String driverName
      Name of the database driver.
    • url

      private final String url
      URL for the database.
    • clr

      private final org.datanucleus.ClassLoaderResolver clr
      ClassLoader resolver to use for class loading
    • userName

      private final String userName
      the user name
    • password

      private final String password
      the password
    • props

      private final Properties props
  • Constructor Details

    • DriverManagerDataSource

      public DriverManagerDataSource(String driverName, String url, String userName, String password, org.datanucleus.ClassLoaderResolver clr, Properties props)
      Constructor.
      Parameters:
      driverName - Class name of the JDBC driver.
      url - URL of the data source.
      userName - User name
      password - User password
      clr - ClassLoaderResolver to use for loading issues
      props - Any custom properties for the driver
  • Method Details