They are clearly explained in this short article.
“Sentencing objectives and principles provide guidance, which are aimed at balancing rehabilitation and protection of society and reparation for harm. Jail terms are only imposed when less severe sanctions are not available in the circumstances, and the actual length of incarceration is affected by credit for time served and parole eligibility.”