public Connection getConnection() throws SQLException {
    if (getUser() == null) {
      return DriverManager.getConnection(url);
    } else {
      return DriverManager.getConnection(url, getUser(), getPassword());
    }
  }
public Connection getConnection ( ) throws SQLException { if ( getUser ( ) == null ) { return DriverManager . getConnection ( url ) ; } else { return DriverManager . getConnection ( url , getUser ( ) , getPassword ( ) ) ; } }
@see org.apache.log4j.receivers.db.ConnectionSource#getConnection()