Reader small image

You're reading from  jOOQ Masterclass

Product typeBook
Published inAug 2022
Reading LevelBeginner
PublisherPackt
ISBN-139781800566897
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Anghel Leonard
Anghel Leonard
author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard

Right arrow

jOOQ providers

The jOOQ SPI exposes a suite of providers such as TransactionProvider, RecordMapperProvider, ConverterProvider, and so on. Their overall goal is simple—to provide some feature that is not provided by the jOOQ default providers. For instance, let's check out TransactionProvider.

TransactionProvider

For instance, we know that jOOQ transactions are backed in Spring Boot by a transaction provider named SpringTransactionProvider (the Spring Boot built-in implementation of jOOQ's TransactionProvider) that exposes by default a read-write transaction with no name (null), having the propagation set to PROPAGATION_NESTED and the isolation level to the default isolation level of the underlying database, ISOLATION_DEFAULT.

Now, let's assume that we implement a module of our application that serves only reports via jOOQ transactions (so we don't use @Transactional). In such a module, we don't want to allow writing, we want to run each query...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
jOOQ Masterclass
Published in: Aug 2022Publisher: PacktISBN-13: 9781800566897

Author (1)

author image
Anghel Leonard

Anghel Leonard is a Chief Technology Strategist and independent consultant with 20+ years of experience in the Java ecosystem. In daily work, he is focused on architecting and developing Java distributed applications that empower robust architectures, clean code, and high-performance. Also passionate about coaching, mentoring and technical leadership. He is the author of several books, videos and dozens of articles related to Java technologies.
Read more about Anghel Leonard