Code example for Driver

Methods: connect

0
    public Connection getConnection( String username, String password ) throws SQLException
    { 
        Properties connProperties = new Properties();
        connProperties.put( "user", m_jdbcUser );
        connProperties.put( "password", m_jdbcPassword );
        Connection connection = m_driver.connect( m_jdbcURL, connProperties );
        return connection;
    } 
 
    /** 
     * Returns the login timeout for the data source. 
     * @return the login timeout, in seconds 
     * @see javax.sql.DataSource#getLoginTimeout() 
     */ 
    public int getLoginTimeout() throws SQLException 
    { 
        return m_timeout;
    } 
 
    /** 
     * Returns the log writer for the data source.