7.4. Advanced transaction options

We now look at ways in which applications can access persistent data outside the context of an active transaction. Recall that persistence and transactionality can be applied to instances in any combination. We say that the two concepts are orthogonal; just because the instance is persistent does not mean that it is necessarily transactional.

7.4.1. NontransactionalRead and Write

If the NontransactionalRead flag on a Transaction is true, then the field values of Hollow and Non-transactional instances can be read without an active transaction.

If the NontransactionalWrite flag on a Transaction is true, then the field values of Persistent-Nontransactional instances can be updated without an active transaction. ...

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.