An injunction may be granted in the following cases:
(1) When it appears by the complaint that the plaintiff is entitled to the relief demanded and such relief, or any part thereof, consists in restraining the commission or continuance of the act complained of either for a limited period or perpetually.
(2) When it appears by the complaint or affidavit that the commission or continuance of some act during the litigation would produce waste or great or irreparable injury to a party to the action.
(3) When it appears during the litigation that a party to the action is doing, or threatens, or is about to do, or is procuring or suffering to be done, some act in violation of the rights of another party to the action respecting the subject of the action and tending to render the judgment ineffectual.
(4) Where pecuniary compensation would not afford adequate relief.
(5) Where it would be extremely difficult to ascertain the amount of compensation which would afford adequate relief.
(6) Where the restraint is necessary to prevent a multiplicity of judicial proceedings.
(7) Where the obligation arises from a trust.
History —Code Civil Proc., 1933, § 677.