READ Free Dumps For Oracle- 1z0-898
Question ID 4588 | It a Persistence application locks entity x with a pessimistic lock, which statement is true? |
Option A | A. Persistence provider can defer obtaining the lock until the next synchronization of an entity to the database. |
Option B | B. A Persistence provider will obtain the lock when the entity is refreshed from the database. |
Option C | C. A Persistence provider is not required to support the LockModeType. PESSIMISTIC_WRITE locking type. |
Option D | D. If a lock cannot be obtained, the Persistence provider must throw an exception. |
Correct Answer | D |
Question ID 4589 | If a Persistence application locks entity x with a LockModeType.OPTIMISTIC_FORCE INCREMENT lock type, which statement is true? |
Option A | A. The Persistence application must increment the version value prior to locking the entity. |
Option B | B. This operation will result in a PersistentLockException for a non-versioned object. |
Option C | C. This operation will result in a PersistentLockException if the version checks fail. |
Option D | D. LockModeType.OPTIMISTIC_FORCE_INCREMENT is the synonym of the LockModeType.WRITE lock type. |
Correct Answer | D |