The lower-level lock durations are transaction locks and the higher-level durations are session locks.
Upgrades
Lock duration upgrades are always attempted. The lock type is that of the highest type of the two locks. However, if the highest lock type is that of the shorter lock duration, the lock type is downgraded at the end of the transaction.
Downgrades
The duration of a lock is never downgraded.