※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。
序文
ISO (国際標準化機構) と IEC (国際電気標準会議) は、世界標準化のための専門システムを形成しています。 ISO または IEC のメンバーである国家機関は、技術活動の特定の分野を扱うために、それぞれの組織によって設立された技術委員会を通じて、国際規格の開発に参加しています。 ISO と IEC の技術委員会は、相互に関心のある分野で協力しています。 ISO および IEC と連携して、政府および非政府の他の国際機関もこの作業に参加しています。情報技術の分野では、ISO と IEC が合同技術委員会 ISO/IEC JTC 1 を設立しました。
国際規格は、ISO/IEC 指令で指定された規則に従って起草されます。 2.
合同技術委員会の主な任務は、国際規格を作成することです。合同技術委員会によって採択された国際規格草案は、投票のために各国の機関に回覧されます。国際規格として発行するには、投票を行う国の機関の少なくとも 75% による承認が必要です。
例外的な状況では、合同技術委員会が、国際規格として通常発行されるものとは異なる種類のデータ (たとえば、「最先端」) を収集した場合、テクニカル レポートの発行を決定する場合があります。技術報告書は本質的に完全に参考情報であり、国際規格と同じ方法で 5 年ごとに見直されるものとします。
このドキュメントの要素の一部が特許権の対象となる可能性があることに注意してください。 ISO および IEC は、そのような特許権の一部またはすべてを特定する責任を負わないものとします。
ISO/IEC TR 19075-4 は、合同技術委員会 ISO/IEC JTC 1, 情報技術、小委員会 SC 32, データ管理および交換によって作成されました。
ISO/IEC TR 19075 は、次の部分で構成され、一般的なタイトルは「情報技術 - データベース言語 - SQL テクニカル レポート」です。
- Part 1: SQL での XQuery 正規表現のサポート
- Part 2: 時間関連情報の SQL サポート
- Part 3: Java™ プログラミング言語を使用したプログラムに組み込まれた SQL
- Part 4: Java™ プログラミング言語を使用したルーチンと型を使用した SQL
- Part 5: SQL での行パターン認識
注 1 —マルチパートテクニカルレポートの個々のパートは、必ずしも一緒に公開されるわけではありません。他の部分の新版を発行せずに、1 つまたは複数の部分の新版を発行することができます。
序章
ISO/IEC 19075 のこの部分の構成は次のとおりです。
- 1)第 1 項「範囲」は、ISO/IEC 19075 のこの部分の範囲を指定します。
- 2)第 2 項「引用規格」は、ISO/IEC 19075 のこの部分での参照を通じて、ISO/IEC 19075 のこの部分の規定を構成する追加規格を識別します。
- 3)第 3 条「ルーチンのチュートリアル」では、Java プログラミング言語で記述されたルーチンを SQL 式およびステートメント内で使用する方法についてのチュートリアルを提供します。
- 4)第 4 項「型のチュートリアル」では、SQL 式およびステートメント内で Java プログラミング言語で記述されたユーザー定義型の使用に関するチュートリアルを提供します。
1 スコープ
このテクニカル レポートでは、Java™ プログラミング言語を使用した SQL ルーチンと型のチュートリアルを提供します。
レポートでは、SQL 言語の次の機能について説明しています。
- SQL 式およびステートメント内での Java プログラミング言語で作成されたルーチンの使用。
- SQL 式およびステートメント内での Java プログラミング言語で記述されたユーザー定義型の使用。
2 参考文献
本書の適用には、以下の参考文献が不可欠です。日付のある参考文献については、引用された版のみが適用されます。日付のない参照については、参照文書の最新版 (修正を含む) が適用されます。
2.1 ISO および IEC 規格
- [ISO9075-1] ISO/IEC 9075-1:2011, 情報技術 - データベース言語 - SQL - 1: フレームワーク (SQL/フレームワーク)
- [ISO9075-2] ISO/IEC 9075-2:2011, 情報技術 - データベース言語 - SQL - 2: ファウンデーション (SQL/ファウンデーション)
- [ISO9075-10] ISO/IEC 9075-10:2008, 情報技術 - データベース言語 - SQL - 10: オブジェクト言語バインディング (SQL/OLB)
- [ISO9075-11] ISO/IEC 9075-11:2011, 情報技術 - データベース言語 - SQL - 11: 情報および定義スキーマ (SQL/スキーマ)
- [ISO9075-13] ISO/IEC 9075-13:2008, 情報技術 - データベース言語 - SQL - 13: Java™ プログラミング言語 (SQL/JRT) を使用した SQL ルーチンと型。
2.2 その他の国際規格
[Java] The Java™ Language Specification, Third Edition 、James Gosling, Bill Joy, Guy Steele, Gilad Bracha 共著、Prentice Hall, 2005 年 6 月 14 日、ISBN 0-321-24678-
[JVM] The Java™ VirtualMachine Specification, SecondEdition 、Tim Lindholm および FrankYellin, Addison-Wesley, 1999 年、ISBN 0-201-43294-3, Java 仮想マシン仕様の明確化および修正により修正、 http://java. sun.com/docs/books/jvms/second_edition/jvmsclarify.html .
[J2SE] Java™ Platform Standard Edition 6API 仕様、 http://java.sun.com/javase/6/docs/api/index.html
[シリアライゼーション] Java™ オブジェクト シリアライゼーション仕様、バージョン 6.0 http://java.sun.com/javase/6/docs/platform/serialization/spec/serialTOC.html
[JDBC] JDBC™ 4.0 仕様、最終 v1.0, Lance Andersen, Sun Microsystems, Inc.、2006 年 11 月 7 日。
Foreword
ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IEC JTC 1.
International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, 2.
The main task of the joint technical committee is to prepare International Standards. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 % of the national bodies casting a vote.
In exceptional circumstances, when the joint technical committee has collected data of a different kind from that which is normally published as an International Standard (“state of the art”, for example), it may decide to publish a Technical Report. A Technical Report is entirely informative in nature and shall be subject to review every five years in the same manner as an International Standard.
Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO and IEC shall not be held responsible for identifying any or all such patent rights.
ISO/IEC TR 19075-4 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology, Subcommittee SC 32, Data management and interchange.
ISO/IEC TR 19075 consists of the following parts, under the general title Information technology - Database languages - SQL Technical Reports:
- Part 1: XQuery Regular Expression Support in SQL
- Part 2: SQL Support for Time-Related Information
- Part 3: SQL Embedded in Programs Using the Java™ Programming Language
- Part 4: SQL with Routines and Types Using the Java™ Programming Language
- Part 5: Row Pattern Recognition in SQL
NOTE 1 — The individual parts of multi-part technical reports are not necessarily published together. New editions of one or more parts may be published without publication of new editions of other parts.
Introduction
The organization of this part of ISO/IEC 19075 is as follows:
- 1) Clause 1, “Scope”, specifies the scope of this part of ISO/IEC 19075.
- 2) Clause 2, “Normative references”, identifies additional standards that, through reference in this part of ISO/IEC 19075, constitute provisions of this part of ISO/IEC 19075.
- 3) Clause 3, “Routines tutorial”, provides a tutorial on the use of routines written in the Java programming language within SQL expressions and statements.
- 4) Clause 4, “Types tutorial”, provides a tutorial on the use of user-defined types written in the Java programming language within SQL expressions and statements.
1 Scope
This Technical Report provides a tutorial of SQL Routines and Types Using the Java™ Programming Language.
The Report discusses the following features of the SQL Language:
- The use of routines written in the Java programming language within SQL expressions and statements.
- the use of user-defined types written in the Java programming language within SQL expressions and statements.
2 Normative references
The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.
2.1 ISO and IEC standards
- [ISO9075-1] ISO/IEC 9075-1:2011, Information technology - Database languages - SQL - 1: Framework (SQL/Framework).
- [ISO9075-2] ISO/IEC 9075-2:2011, Information technology - Database languages - SQL - 2: Foundation (SQL/Foundation).
- [ISO9075-10] ISO/IEC 9075-10:2008, Information technology - Database languages - SQL - 10: Object Language Bindings (SQL/OLB).
- [ISO9075-11] ISO/IEC 9075-11:2011, Information technology - Database languages - SQL - 11: Information and Definition Schemas (SQL/Schemata).
- [ISO9075-13] ISO/IEC 9075-13:2008, Information technology - Database languages - SQL - 13: SQL Routines and Types Using the Java™ Programming Language (SQL/JRT).
2.2 Other international standards
[Java] The Java™ Language Specification, Third Edition, James Gosling, Bill Joy, Guy Steele, and Gilad Bracha, Prentice Hall, June 14, 2005, ISBN 0-321-24678-0.
[JVM] The Java™VirtualMachine Specification, SecondEdition, Tim Lindholm and FrankYellin, Addison-Wesley, 1999, ISBN 0-201-43294-3, as amended by Clarifications and Amendments to the Java Virtual Machine Specification, http://java.sun.com/docs/books/jvms/second_edition/jvmsclarify.html .
[J2SE] Java™ Platform Standard Edition 6API Specification, http://java.sun.com/javase/6/docs/api/index.html .
[Serialization] Java™ObjectSerialization Specification, version 6.0 http://java.sun.com/javase/6/docs/platform/serialization/spec/serialTOC.html .
[JDBC] JDBC™ 4.0 Specification, Final v1.0, Lance Andersen, Sun Microsystems, Inc., November 7, 2006.