We obtain a complete classification of the continuous unitary representations of the isometry group of the rational Urysohn space ℚ𝕌. As a consequence, we show that Isom(ℚ𝕌) has property (T). We also derive several ergodic theoretic consequences from this classification: (i) every probability measure-preserving action of Isom(ℚ𝕌) is either essentially free or essentially transitive, (ii) every ergodic Isom(ℚ𝕌)-invariant probability measure on [0,1]ℚ𝕌 is a product measure. We obtain the same results for isometry groups of variations of ℚ𝕌, such as the rational Urysohn sphere ℚ𝕌1, the integral Urysohn space ℤ𝕌, etc.