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

Calling stored functions/procedures from jOOQ

Once you start dealing with stored functions/procedures across different database vendors, you'll be hit by the lack of standardization. For instance, the vendor-specific syntax for expressing functions/procedures, the wide variety of vendor-specific functions/procedure types, and different ways of supporting and treating the output parameters are just a few non-standard aspects of stored functions/procedures.

Calling stored functions/procedures via plain JDBC code is not easy either, especially if advanced data types are involved (for instance, arrays or UDTs). But, as you already know, using the jOOQ DSL saves us from interacting directly with the JDBC API, so it saves us from making cutting-edge decisions regarding JDBC workarounds.

The jOOQ DSL represents stored functions/procedures via the org.jooq.Routine API, so there is a common API for both. Whenever the jOOQ generator detects a stored function/procedure it generates...

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