A man has been sentenced for a catalogue of “reprehensible” behaviour towards his ex-partner.