Class DriverConnectionProvider

    • Constructor Detail

      • DriverConnectionProvider

        public DriverConnectionProvider()
    • Method Detail

      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl​(String url)
      • getDriver

        public String getDriver()
      • setDriver

        public void setDriver​(String driver)
      • createConnection

        public Connection createConnection​(String user,
                                           String password)
                                    throws SQLException
        Although named getConnection() this method should always return a new connection when being queried or should wrap the connection in a way so that calls to "close()" on that connection do not prevent subsequent calls to this method to fail.
        Specified by:
        createConnection in interface ConnectionProvider
        user - the user name.
        password - the password.
        the connection.
        SQLException - if the connection has errors.
      • getPropertyNames

        public String[] getPropertyNames()
      • hashCode

        public int hashCode()
        hashCode in class Object