I am not familiar with the geometry. However, it is clear that you must first determine an approximate film coefficient for heat transfer from the oil to the wetted parts of the pump. The overall heat transfer and energy balance around the pump parts, oil and ambient air must be performed to determine shaft temperature. It may be best to approach this problem with finite element analysis after calculating boundary conditions at the surfaces.