Quantum theory of sticking: equivalence of various approaches and application to a simple model