ISO/IEC 19075-3:2021
Information technology — Guidance for the use of database language SQL — Part 3: SQL embedded in programs using the JavaTM programming language
Information technology — Guidance for the use of database language SQL — Part 3: SQL embedded in programs using the JavaTM programming language
- Статус документа:
- Действующий
- Формат:
- Электронный (PDF)
- Количество страниц:
- 21
- Дата публикации:
- 1 сентября 2021 г.
- Издание:
- ISO/IEC IS 19075 edition 1 version 1
- ICS:
- 35.060
This document describes the support for the use of SQL within programs written in Java. This document discusses the following features of the SQL language: — The embedding of SQL expressions and statements in programs written in the Java programming language.
Abstract
Overview
ISO/IEC 19075-3:2021 provides guidance for embedding the SQL database language inside programs written in the Java programming language. The standard explains how to integrate SQL expressions and statements into Java source, describes design goals (such as binary portability and compile-time checking), and documents runtime profile customization and utilities that enable database-specific behavior. This is commonly referred to when implementing or using SQL embedded in Java (SQL/OLB / SQLJ) solutions and when deciding between embedded SQL and lower-level APIs like JDBC.
Key topics and technical requirements
- Embedding SQL in Java: Rules and recommendations for placing SQL expressions and statements directly in Java code, including host expressions and host variables.
- Design goals: Support for compile-time SQL syntactic/semantic checking, location-independent SQL semantics, binary portability, and shared SQL connection usage between SQL/OLB and JDBC environments.
- Advantages over JDBC: Smaller, higher-level source programs; potential for translator compile-time type checking; direct embedding of Java host expressions; stronger typing and simplified SQL-invoked routine invocation.
- Profile customization: Mechanisms to add implementation-specific SQL execution control via serializable profile customizers and runtime interfaces (for example, SQLJ.runtime.profile.RTStatement, RTResultSet, ConnectedProfile).
- Profile customization process: Steps for discovering, deserializing, customizing, and reserializing profiles (JAR-based profiles), enabling SQL implementations to register hooks for particular DBMS behavior.
- Runtime and utilities: Recommendations for tools (CLI, GUI/IDE integrations, installers) to automate profile customization and precompile/optimize embedded SQL.
- Examples and features: Iterators, binding strategies (positional and named), connection contexts, batching, result mapping, user-defined types, and techniques to obtain java.sql.ResultSet objects from SQL/OLB iterators.
Applications and users
Who uses ISO/IEC 19075-3:
- Java application developers who want to embed SQL directly in their code for stronger typing and simpler source.
- Database vendors and middleware vendors implementing SQL/OLB translators or runtime customizations.
- Tool and IDE developers building precompilers, profile customization utilities, and migration tools.
- System integrators targeting binary-portable Java database applications across multiple SQL implementations.
Practical benefits:
- Cleaner Java source with less boilerplate than JDBC.
- Compile-time SQL checks and safer runtime behavior.
- Easier portability and DB-specific optimization through profile customization.
Related standards
- ISO/IEC 9075 series (SQL/Framework and Object Language Bindings): parts 1, 2, 3, 4, 9–16 as listed in the standard
- Java Language Specification (Java SE editions)
- JDBC Specification (e.g., JDBC 4.3)
Keywords: SQL embedded in Java, SQL/OLB, SQLJ, embedded SQL, JDBC alternative, profile customization, binary portability, Java database integration.
Технические детали
- Технический комитет
- ISO/IEC JTC 1/SC 32 - Data management and interchange
- SKU
- ISO/IEC 19075-3:2021
Похожие стандарты
Упомянутые в описании и другие стандарты ISO
ISO/IEC 9075-5:1999
ОтменёнInformation technology — Database languages — SQL — Part 5: Host Language Bindings (SQL/Bindings)
ISO 8212:1986
ОтменёнSoaps and detergents — Techniques of sampling during manufacture
Overview Standard Reference: ISO 8212:1986 Title: Soaps and detergents - Techniques of sampling during manufacture ISO 8212:1986 defines standardized techniques for taking representative samples of s…
ISO 20662:2020
ДействующийShips and marine technology — Hopper dredger supervisory and control systems
Overview ISO 20662:2020 - Ships and marine technology: Hopper dredger supervisory and control systems (HD‑SCS) - specifies the components, structure, general requirements, and functional requirements…
ISO 3021:2023
ДействующийAdventure tourism — Hiking and trekking activities — Requirements and recommendations
Overview ISO 3021:2023 - Adventure tourism: Hiking and trekking activities - Requirements and recommendations defines safety-focused requirements and recommendations for hiking and trekking offered a…
ISO 3826-2:2008
ДействующийPlastics collapsible containers for human blood and blood components — Part 2: Graphical symbols for use on l…
Overview ISO 3826-2:2008 - "Plastics collapsible containers for human blood and blood components - Part 2: Graphical symbols for use on labels and instruction leaflets" defines a system of internatio…
ISO/IEC 24730-1:2014
ДействующийInformation technology — Real-time locating systems (RTLS) — Part 1: Application programming interface (API)
Overview ISO/IEC 24730-1:2014 specifies the Application Programming Interface (API) for Real‑Time Locating Systems (RTLS). The standard defines a minimal, interoperable boundary that lets application…
ISO 8668-5:1992
ДействующийAircraft — Terminal junction systems — Part 5: Detail specification for type 3 system
Overview - ISO 8668-5:1992 (Aircraft terminal junction systems, Type 3) ISO 8668-5:1992 defines the detail specification for Type 3 Terminal Junction Systems (TJS) used in aircraft electrical install…
ISO 7574-3:1985
ДействующийAcoustics — Statistical methods for determining and verifying stated noise emission values of machinery and e…
Overview ISO 7574-3:1985 is part of the ISO 7574 series on acoustics and provides a simple (transition) statistical method for determining and verifying stated noise emission values for batches (lots…