Integrability, existence of global solutions, and wave breaking criteria for a generalization of the Camassa–Holm equation