org.apache.commons.dbcp2

Class DriverManagerConnectionFactory

    • Constructor Detail

      • DriverManagerConnectionFactory

        public DriverManagerConnectionFactory(String connectionUri)
        Constructor for DriverManagerConnectionFactory.
        Parameters:
        connectionUri - a database url of the form jdbc:subprotocol:subname
        Since:
        2.2
      • DriverManagerConnectionFactory

        public DriverManagerConnectionFactory(String connectionUri,
                                              Properties properties)
        Constructor for DriverManagerConnectionFactory.
        Parameters:
        connectionUri - a database url of the form jdbc:subprotocol:subname
        properties - a list of arbitrary string tag/value pairs as connection arguments; normally at least a "user" and "password" property should be included.
      • DriverManagerConnectionFactory

        public DriverManagerConnectionFactory(String connectionUri,
                                              String userName,
                                              String userPassword)
        Constructor for DriverManagerConnectionFactory.
        Parameters:
        connectionUri - a database url of the form jdbc:subprotocol:subname
        userName - the database user
        userPassword - the user's password

Copyright © 2001–2018 The Apache Software Foundation. All rights reserved.