Oracle
1Z0-898 · Question #12
If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true?
The correct answer is D. LockModeType.OPTIMISTIC_FORCE_INCREMENT is the synonym of the. Lock ModeWRITE is asynonym for OPTIMISTIC_FORCE_INCREMENT. Use of LockModeType.OPTIMISTIC_FORCE_INCREMENT is to be preferred for new applications.
Advanced Topics
Question
If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true?
Options
- AThe Persistence application must increment the version value prior to locking the entity.
- BThis operation will result in a PersistentLockException for a non-versioned object.
- CThis operation will result in a PersistentLockException if the version checks fail.
- DLockModeType.OPTIMISTIC_FORCE_INCREMENT is the synonym of the
How the community answered
(34 responses)- A3% (1)
- B9% (3)
- C15% (5)
- D74% (25)
Explanation
Lock ModeWRITE is asynonym for OPTIMISTIC_FORCE_INCREMENT. Use of LockModeType.OPTIMISTIC_FORCE_INCREMENT is to be preferred for new applications.
Topics
#OPTIMISTIC_FORCE_INCREMENT#version attribute#LockModeType#optimistic locking
Community Discussion
No community discussion yet for this question.