7.5. Transaction modes to improve efficiency

JDO defines two additional transaction modes intended to improve efficiency. These are RestoreValues and RetainValues. Note that the setting of these flags only affects instances in memory, and does not alter the effect of commit or rollback processing on the data store.

7.5.1. RestoreValues

The setting of the RestoreValues flag affects the treatment of instances in memory as a result of transaction rollback.

If the RestoreValues flag is true, instances involved in a transaction that is rolled back will have their field values restored to their original values. These were cached when the transaction was begun.

If the RestoreValues flag is false, instances involved in a transaction that is rolled back ...

Get Java™ Data Objects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.