A Cork man has been jailed for eight years after pouring boiling water over his sleeping wife and attacking her with a hammer.