O'Reilly logo

Java™ Data Objects by Robin M. Roos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required