You go thru passport control and you're in the Schengen zone of the airport and can continue to your gate. Two hours is plenty of time for this, but make sure to go thru passport control/immigration first before you stop to eat or drink something or to shop.