A Consistent Description of the Pairing Symmetry in Hole and Electron Doped Cuprates Within the Two-Dimensional Hubbard Model.