4.5. Optional lifecycle transitions
The following state transitions involve optional states and apply only to implementations where the associated optional feature is supported.
4.5.1. Optimistic transactions
Support for optimistic transactions is implemented with the state Persistent-Nontransactional (Figure 4.10). Whereas a Persistent-Clean instance has its state constantly synchronized with the data store, a Persistent-Nontransactional instance may remain unaltered in the persistence manager’s cache even though the underlying data entity has been altered.
Figure 4.10. Optimistic transactions
When optimistic locking is in use, the reading ...
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.