Given that \(\frac { 9 x ^ { 2 } - 6 x + 5 } { ( 3 x - 1 ) ( x - 1 ) }\) can be written in the form \(3 + \frac { A } { 3 x - 1 } + \frac { B } { x - 1 }\), where \(A\) and \(B\) are integers, find the values of \(A\) and \(B\).
Hence, or otherwise, find \(\int \frac { 9 x ^ { 2 } - 6 x + 5 } { ( 3 x - 1 ) ( x - 1 ) } \mathrm { d } x\).