Class BasicEmbeddedConnectionPoolDataSource40

    • Constructor Detail

      • BasicEmbeddedConnectionPoolDataSource40

        public BasicEmbeddedConnectionPoolDataSource40()
        No-argument constructor.
    • Method Detail

      • getPooledConnection

        public final javax.sql.PooledConnection getPooledConnection()
                                                             throws java.sql.SQLException
        Specified by:
        getPooledConnection in interface javax.sql.ConnectionPoolDataSource
        Throws:
        java.sql.SQLException
      • getPooledConnection

        public final javax.sql.PooledConnection getPooledConnection​(java.lang.String username,
                                                                    java.lang.String password)
                                                             throws java.sql.SQLException
        Specified by:
        getPooledConnection in interface javax.sql.ConnectionPoolDataSource
        Throws:
        java.sql.SQLException
      • createPooledConnection

        private javax.sql.PooledConnection createPooledConnection​(java.lang.String user,
                                                                  java.lang.String password,
                                                                  boolean requestPassword)
                                                           throws java.sql.SQLException
        Minion helper method. Create and return a pooled connection
        Parameters:
        user - the user name used to authenticate the connection
        password - the user's password
        requestPassword - false if original call is from a no-argument constructor, otherwise true
        Returns:
        a connection to the database
        Throws:
        java.sql.SQLException - if a database-access error occurs