SQLJ Developer's Guide

Total Page:16

File Type:pdf, Size:1020Kb

SQLJ Developer's Guide Oracle® Database SQLJ Developer's Guide Release 18c E83918-02 May 2018 Oracle Database SQLJ Developer's Guide, Release 18c E83918-02 Copyright © 1999, 2018, Oracle and/or its affiliates. All rights reserved. Primary Author: Tanmay Choudhury Contributing Authors: Tulika Das, Venkatasubramaniam Iyer, Brian Wright, Janice Nygard Contributors: Krishna Mohan, Amit Bande, Sumit Sahu, Amoghavarsha Ramappa, Dhilipkumar Gopal, Quan Wang, Angela Barone, Ekkehard Rohwedder, Brian Becker, Alan Thiesen, Lei Tang, Julie Basu, Pierre Dufour, Jerry Schwarz, Risto Lakinen, Cheuk Chau, Vishu Krishnamurthy, Rafiul Ahad, Jack Melnick, Tim Smith, Thomas Pfaeffle, Tom Portfolio, Ellen Barnes, Susan Kraft, Sheryl Maring This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected by intellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate, broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering, disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited. The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to us in writing. If this is software or related documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, then the following notice is applicable: U.S. GOVERNMENT END USERS: Oracle programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal Acquisition Regulation and agency- specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, including any operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and license restrictions applicable to the programs. No other rights are granted to the U.S. Government. This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in any inherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerous applications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. Oracle Corporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The Open Group. This software or hardware and documentation may provide access to or information about content, products, and services from third parties. Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-party content, products, or services, except as set forth in an applicable agreement between you and Oracle. Contents Preface Audience xv Related Documents xv Documentation Accessibility xvii Conventions xvii 1 Changes in This Release for Oracle SQLJ Developer’s Guide 2 Getting Started Assumptions and Requirements 2-1 Assumptions About Your Environment 2-1 Requirements for Using the Oracle SQLJ Implementation 2-2 SQLJ Environment 2-2 Environment Considerations 2-3 SQLJ Backward Compatibility 2-3 Checking the Installation and Configuration 2-4 Check for Availability of SQLJ and Demo Applications 2-4 Check for Installed Directories and Files 2-4 Set the Path and Classpath 2-4 Verify Installation of the sqljutl Package 2-5 Testing the Setup 2-6 Set Up the Run-Time Connection 2-7 Create a Table to Verify the Database 2-7 Verify the JDBC Driver 2-8 Verify the SQLJ Translator and Run Time 2-8 Verify the SQLJ Translator Connection to the Database 2-9 3 Introduction to SQLJ Overview of SQLJ 3-1 Overview of SQLJ Components 3-2 iii SQLJ Translator Functionality 3-2 SQLJ Run Time 3-3 Overview of Oracle Extensions to the SQLJ Standard 3-3 SQLJ Type Extensions 3-4 SQLJ Functionality Extensions 3-5 Basic Translation Steps and Run-Time Processing 3-6 SQLJ Translation Steps 3-6 Summary of Translator Input and Output 3-8 Translator Input 3-9 Translator Output 3-9 Output File Locations 3-10 SQLJ Run-Time Processing 3-10 SQLJ Sample Code 3-11 SQLJ Version of the Sample Code 3-11 JDBC Version of the Sample Code 3-13 Alternative Deployment Scenarios 3-14 Running SQLJ in Applets 3-14 General Development and Deployment Considerations 3-15 General End User Considerations 3-15 Java Environment and the Java Plug-In 3-15 Alternative Development Scenarios 3-16 SQLJ Globalization Support 3-17 SQLJ in Oracle JDeveloper 10g and Other IDEs 3-17 Windows Considerations 3-17 4 Key Programming Considerations Selection of the JDBC Driver 4-1 Overview of Oracle JDBC Drivers 4-1 Driver Selection for Translation 4-4 Driver Selection and Registration for Run Time 4-4 Connection Considerations 4-5 Single Connection or Multiple Connections Using DefaultContext 4-6 Closing Connections 4-9 Multiple Connections Using Declared Connection Context Classes 4-10 More About the Oracle Class 4-11 More About the DefaultContext Class 4-12 Connection for Translation 4-15 Connection for Customization 4-15 NULL-Handling 4-16 Wrapper Classes for NULL-Handling 4-16 iv Examples of NULL-Handling 4-17 Exception-Handling Basics 4-18 SQLJ and JDBC Exception-Handling Requirements 4-18 Processing Exceptions 4-19 Using SQLException Subclasses 4-20 Basic Transaction Control 4-21 Overview of Transactions 4-21 Automatic Commits Versus Manual Commits 4-22 Specifying Auto-Commit as You Define a Connection 4-22 Modifying Auto-Commit in an Existing Connection 4-23 Using Manual COMMIT and ROLLBACK 4-23 Effect of Commits and Rollbacks on Iterators and Result Sets 4-24 Using Savepoints 4-24 Summary: First Steps in SQLJ Code 4-26 Oracle-Specific Code Generation (No Profiles) 4-31 Environment Requirements for Oracle-Specific Code Generation 4-31 Code Considerations and Limitations with Oracle-Specific Code Generation 4-32 SQLJ Usage Changes with Oracle-Specific Code Generation 4-33 Advantages and Disadvantages of Oracle-Specific Code Generation 4-34 ISO Standard Code Generation 4-35 Environment Requirements for ISO Standard Code Generation 4-35 SQLJ Translator and SQLJ Run Time 4-36 SQLJ Profiles 4-36 Overview of Profiles 4-37 Binary Portability 4-37 SQLJ Translation Steps 4-38 Summary of Translator Input and Output 4-39 Translator Input 4-39 Translator Output 4-39 Output File Locations 4-41 SQLJ Run-Time Processing 4-41 Deployment Scenarios 4-42 Oracle-Specific Code Generation Versus ISO Standard Code Generation 4-44 Requirements and Restrictions for Naming 4-44 Java Namespace: Local Variable and Class Naming Restrictions 4-44 SQLJ Namespace 4-46 SQL Namespace 4-46 File Name Requirements and Restrictions 4-46 Considerations for SQLJ in the Middle Tier 4-47 v 5 Basic Language Features Overview of SQLJ Declarations 5-1 Rules for SQLJ Declarations 5-2 Iterator Declarations 5-3 Connection Context Declarations 5-3 Declaration IMPLEMENTS Clause 5-4 Declaration WITH Clause 5-5 Standard WITH Clause Usage 5-5 Oracle-Specific WITH Clause Usage 5-7 Example: Returnability 5-7 Overview of SQLJ Executable Statements 5-8 Rules for SQLJ Executable Statements 5-9 SQLJ Clauses 5-9 Specifying Connection Context Instances and Execution Context Instances 5-11 Executable Statement Examples 5-11 PL/SQL Blocks in Executable Statements 5-12 Java Host, Context, and Result Expressions 5-13 Overview of Host Expressions 5-14 Basic Host Expression Syntax 5-14 Examples of Host Expressions 5-16 Overview of Result Expressions and Context Expressions 5-18 Evaluation of Java Expressions at Run Time 5-18 Examples of Evaluation of Java Expressions at Run Time (ISO Code Generation) 5-20 Restrictions on Host Expressions 5-25 Single-Row Query Results: SELECT INTO Statements 5-25 SELECT INTO Syntax 5-26 Examples of SELECT INTO Statements 5-26 Examples with Host Expressions in SELECT-List 5-27 SELECT INTO Error Conditions 5-27 Multirow Query Results: SQLJ Iterators 5-28 Iterator Concepts 5-28 Overview of Strongly Typed Iterators 5-29 Overview of Weakly Typed Iterators 5-31 General Steps in Using an Iterator 5-31 Named, Positional, and Result Set Iterators 5-31 Using Named Iterators 5-32 Using Positional Iterators 5-36 Using Iterators and Result Sets as Host Variables 5-39 Using Iterators and Result Sets as Iterator Columns 5-41 Assignment Statements (SET) 5-44 vi Stored Procedure and Function Calls
Recommended publications
  • Informix Embedded SQLJ User's Guide
    Informix Embedded SQLJ User’s Guide Version 1.0 March 1999 Part No. 000-5218 Published by INFORMIX Press Informix Corporation 4100 Bohannon Drive Menlo Park, CA 94025-1032 © 1999 Informix Corporation. All rights reserved. The following are trademarks of Informix Corporation or its affiliates: Answers OnLineTM; CBT StoreTM; C-ISAM ; Client SDKTM; ContentBaseTM; Cyber PlanetTM; DataBlade ; Data DirectorTM; Decision FrontierTM; Dynamic Scalable ArchitectureTM; Dynamic ServerTM; Dynamic ServerTM, Developer EditionTM; Dynamic ServerTM with Advanced Decision Support OptionTM; Dynamic ServerTM with Extended Parallel OptionTM; Dynamic ServerTM with MetaCube ROLAP Option; Dynamic ServerTM with Universal Data OptionTM; Dynamic ServerTM with Web Integration OptionTM; Dynamic ServerTM, Workgroup EditionTM; FastStartTM; 4GL for ToolBusTM; If you can imagine it, you can manage itSM; Illustra ; INFORMIX ; Informix Data Warehouse Solutions... Turning Data Into Business AdvantageTM; INFORMIX -Enterprise Gateway with DRDA ; Informix Enterprise MerchantTM; INFORMIX -4GL; Informix-JWorksTM; InformixLink ; Informix Session ProxyTM; InfoShelfTM; InterforumTM; I-SPYTM; MediazationTM; MetaCube ; NewEraTM; ON-BarTM; OnLine Dynamic ServerTM; OnLine for NetWare ; OnLine/Secure Dynamic ServerTM; OpenCase ; ORCATM; Regency Support ; Solution Design LabsSM; Solution Design ProgramSM; SuperView ; Universal Database ComponentsTM; Universal Web ConnectTM; ViewPoint ; VisionaryTM; Web Integration SuiteTM. The Informix logo is registered with the United States Patent and Trademark Office. The DataBlade logo is registered with the United States Patent and Trademark Office. Documentation Team: Joyce Simmonds, Juliet Shackell, Ju-Lung Tseng, Barb Van Dine, and the Oakland Editing and Production team GOVERNMENT LICENSE RIGHTS Software and documentation acquired by or for the US Government are provided with rights as follows: (1) if for civilian agency use, with rights as restricted by vendor’s standard license, as prescribed in FAR 12.212; (2) if for Dept.
    [Show full text]
  • Oracle Database SQLJ Developer's Guide
    Oracle® Database SQLJ Developer’s Guide and Reference 10g Release 2 (10.2) B16018-02 August 2006 Oracle Database SQLJ Developer’s Guide and Reference, 10g Release 2 (10.2) B16018-02 Copyright © 1999, 2006, Oracle. All rights reserved. Primary Author: Venkatasubramaniam Iyer Contributing Author: Brian Wright, Janice Nygard Contributor: Quan Wang, Ekkehard Rohwedder, Amit Bande, Krishna Mohan, Amoghavarsha Ramappa, Brian Becker, Alan Thiesen, Lei Tang, Julie Basu, Pierre Dufour, Jerry Schwarz, Risto Lakinen, Cheuk Chau, Vishu Krishnamurthy, Rafiul Ahad, Jack Melnick, Tim Smith, Thomas Pfaeffle, Tom Portfolio, Ellen Barnes, Susan Kraft, Sheryl Maring, Angie Long The Programs (which include both the software and documentation) contain proprietary information; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs, except to the extent required to obtain interoperability with other independently created software or as specified by law, is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. This document is not warranted to be error-free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose. If the Programs are delivered to the United States Government or anyone licensing or using the Programs on behalf of the United States Government, the following notice is applicable: U.S.
    [Show full text]
  • Database Programming Week 9
    Database Programming Week 9 *Some of the slides in this lecture are created by Prof. Ian Horrocks from University of Oxford SQL in Real Programs • We have seen only how SQL is used at the generic query interface --- an environment where we sit at a terminal and ask queries of a database. • Reality is almost always different. – Programs in a conventional language like C are written to access a database by “calls” to SQL statements. 2 Database Programming Code in Programming Language SQL Sequence of tuples Database 3 SQL in Application Code • SQL commands can be called from within a host language (e.g., C++ or Java) program. – SQL statements can refer to host variables (including special variables used to return status). – Must include a statement to connect to the right database. • Two main integration approaches: – Embed SQL in the host language (embedded SQL, SQLJ) – Create special API to call SQL commands (JDBC) 4 SQL in Application Code (Con’t) • Impedance mismatch – SQL relations are (multi-) sets of records, with no a priori bound on the number of records. Typically, no such data structure in programming languages such as C/ C++ (Though now: STL). – SQL supports a mechanism called a cursor to handle this. 5 Embedded SQL • Approach: Embed SQL in the host language. – A preprocessor converts/translates the SQL statements into special API calls. – Then a regular compiler is used to compile the code. 6 Embedded SQL • Language constructs: – Connecting to a database !EXEC SQL CONNECT :usr_pwd;! !// the host variable usr_pwd contains your
    [Show full text]
  • Proposed Final Draft
    Java™ 2 Platform Enterprise Edition Specification, v1.3 Please send technical comments to: [email protected] Please send business comments to: [email protected] Proposed Final Draft Proposed Final Draft - 10/20/00 Bill Shannon 901 San Antonio Road Palo Alto, CA 94303 USA 650 960-1300 fax: 650 969-9131 Sun Microsystems, Inc. Java™ 2 Platform, Enterprise Edition Specification ("Specification") Version: 1.3 Status: Proposed FInal Draft Release: 10/20/00 Copyright 1999-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303, U.S.A. All rights reserved. NOTICE. This Specification is protected by copyright and the information described herein may be protected by one or more U.S. patents, foreign patents, or pending applications. Except as provided under the following license, no part of this Specification may be reproduced in any form by any means without the prior written authorization of Sun Microsystems, Inc. (“Sun”) and its licensors, if any. Any use of this Specification and the information described herein will be governed by the terms and conditions of this license and the Export Control and General Terms as set forth in Sun's website Legal Terms. By viewing, downloading or otherwise copying this Specification, you agree that you have read, understood, and will comply with all of the terms and conditions set forth herein. Subject to the terms and conditions of this license, Sun hereby grants you a fully-paid, non-exclusive, non-transferable, worldwide, limited license (without the right to sublicense) under Sun’s intellectual property rights to review the Specification internally for the purposes of evaluation only.
    [Show full text]
  • SQL — Part 13: SQL Routines and Types Using the Java TM Programming Language (SQL/JRT)
    INTERNATIONAL ISO/IEC STANDARD 9075-13 Fourth edition 2016-12-15 Information technology — Database languages — SQL — Part 13: SQL Routines and types using the Java TM programming language (SQL/JRT) Technologies de l’information — Langages de base de données — SQL — Partie 13: Routines et types de SQL utilisant le langage de programmation Java TM (SQL/JRT) Reference number ISO/IEC 9075-13:2016(E) © ISO/IEC 2016 ISO/IEC 9075-13:2016(E) COPYRIGHT PROTECTED DOCUMENT © ISO/IEC 2016, Published in Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form orthe by requester. any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of Ch. de Blandonnet 8 • CP 401 ISOCH-1214 copyright Vernier, office Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22 749 09 47 www.iso.org [email protected] ii © ISO/IEC 2016 – All rights reserved ISO/IEC 9075-13:2016(E) Contents Page Foreword..................................................................................... vii Introduction.................................................................................. viii 1 Scope.................................................................................... 1 2 Normative references...................................................................... 3 2.1 ISO and IEC standards...................................................................
    [Show full text]
  • SQLJ Tool Note! Before Using This Information and the Product It Supports, Be Sure to Read the General Information Under Notices
    IBMVisualAgeforJava,Version3.0,EarlyAdopters Environment for the Java 2 platform, Standard Edition V1.2 IBM SQLJ Tool Note! Before using this information and the product it supports, be sure to read the general information under Notices. Edition notice This edition applies to Version 3.0 of IBM VisualAge for Java and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 1999. All rights reserved. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices ...............v Translating an imported SQLJ file .......6 Programming Interface Information ......vi Editing an SQLJ file ............7 Trademarks and Service Marks ........vii Keeping your SQLJ file and Java code synchronized 7 Setting SQLJ translation options ........8 Chapter 1. Database access using SQLJ 1 Creating an SQLJ debug class file .......8 Customizing an SQLJ profile .........9 Changing the SQLJ translator class .......9 Chapter 2. Before you begin ......3 Setting up SQLJ .............3 Appendix. SQLJTranslatorSupportToolProperties Chapter 3. Component tasks ......5 file ................11 Creating an SQLJ file ...........5 Importing and translating an SQLJ file......5 © Copyright IBM Corp. 1999 iii iv SQLJ Tool Notices Note to U.S. Government Users Restricted Rights -- use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area.
    [Show full text]
  • Chapter 3 DB Gateways.Pptx
    Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 [email protected] Chapter 3 DB-Gateways Outline n Coupling DBMS and programming languages n approaches n requirements n Programming Model (JDBC) n overview n DB connection model n transactions n Data Access in Distributed Information System Middleware n DB-Gateways n architectures n ODBC n JDBC n SQL/OLB – embedded SQL in Java n Summary 2 © Prof.Dr.-Ing. Stefan Deßloch Middleware for Information Systems Coupling Approaches – Overview n Embedded SQL n (static) SQL queries are embedded in the programming language n cursors to bridge so-called impedance mismatch n preprocessor converts SQL into function calls of the programming language n potential performance advantages (early query compilation) n vendor-specific n Dynamic (embedded) SQL n SQL queries can be created dynamically by the program n character strings interpreted as SQL statements by an SQL system n Call-Level Interface (CLI) n standard library of functions that can be linked to the program n same capabilities as (static and dynamic) embedded n SQL queries are string parameters of function invocation n avoids vendor-specific precompiler 3 © Prof.Dr.-Ing. Stefan Deßloch Middleware for Information Systems Coupling Approaches (Examples) n Embedded SQL n static n Example: exec sql declare c cursor for SELECT empno FROM Employees WHERE dept = :deptno_var; exec sql open c; exec sql fetch c into :empno_var; n dynamic n Example: strcpy(stmt, "SELECT empno FROM Employees WHERE dept = ?"); exec sql prepare s1 from :stmt; exec sql declare c cursor for s1; exec sql open c using :deptno_var; exec sql fetch c into :empno_var; n Call-Level Interface (CLI) n Example: strcpy(stmt, "SELECT empno FROM Employees WHERE dept = ?"); SQLPrepare(st_handle, stmt, …); SQLBindParam(st_handle, 1, …, &deptno_var, …); SQLBindCol(st_handle, 1, …, &empno_var, …); SQLExecute(st_handle); SQLFetch(st_handle); 4 © Prof.Dr.-Ing.
    [Show full text]
  • Embedded SQL in Java
    SQLJ: Embedded SQL in Java This chapter introduces SQLJ, a relatively new standard that many database vendors have already adopted. SQLJ differs from JDBC in that SQL statements can be embedded directly in Java programs and translation-time semantics checks can be performed. It is a powerful tool that complements JDBC access to databases. Programming in SQLJ is discussed in detail in this chapter, and an application program for the investment portfolio database is presented. 6.1 What Is SQLJ? SQLJ is an emerging database programming tool that allows embedding of static SQL statements in Java programs, very much like Pro*C or Pro*C++. SQLJ is an attractive alternative to JDBC because it allows translation-time syntax and semantics checking of static SQL statements. As a consequence, application programs developed in SQLJ are more robust. SQLJ’s syntax is also much more compact than that of JDBC, resulting in shorter programs and increased user productivity. The SQLJ translator converts Java programs embedded with static SQL state- ments into pure Java code, which can then be executed through a JDBC driver against the database. Programmers can also perform dynamic SQL access to the database using JDBC features. 273 274 SQLJ: Embedded SQL in Java 6.2 Simple Example A simple program in SQLJ is presented in this section. This program illustrates the essential steps that are needed to write an SQLJ program. These steps follow: 1. Import necessary classes.In addition to the JDBC classes, java.sql.*, every SQLJ program will need to include the SQLJ run-time classes sqlj.runtime.* and sqlj.runtime.ref.*.
    [Show full text]
  • Part One: Java in the Database1
    Part One: Java in the Database1 At the beginning was SQL, a high-level query language for relational databases. Then the need to extend SQL with procedural logic gave birth to the concept of stored procedures and their corresponding languages such as Oracle’s PL/SQL. Stored procedures allow developing data logic that run in the database, decoupled from business and computational logic that run in the middle tier. However, the proprietary nature of stored procedure languages, leads to some concerns (or perception) of vendor lock-in and skills shortage. Java is a response to these concerns. The ANSI SQLJ Part-I specification defines “SQL Routines and Types Using Java”. Although there are differences in their specific implementations, most RDBMS including Oracle, DB2, Sybase, even open-sources RDBMS such as PostGresSQL and to some extent MySQL, support Java as language for stored procedures and user-defined functions. Chapter One discusses the rationale for stored procedures, the programming model and languages. Chapter Two tells you everything you ever wanted to know about the OracleJVM, its architecture, memory management, threading, class sharing techniques, the native Java compiler (NCOMP), security management, and contrasts it with the JDK VM. Chapter Three delves into the details of developing, deploying, and invoking Java applications in the database, including an extensive section on PL/SQL wrappers (a.k.a. Call Spec) for publishing Java (i.e., make it known) to SQL, and mapping SQL datatypes to/from Java/JDBC datatypes. Chapter Four describes atypical Java applications, which implement new database functionality using standard Java libraries. Finally, just for fun, in Chapter Five, you will run basic JACL, Jython, Scheme and Groovy scripts in the database, as proof of the concept of supporting non-Java languages in the database2.
    [Show full text]
  • IBM Informix Embedded SQLJ User's Guide
    IBM Informix Embedded SQLJ User’s Guide Version 1.01 March 2003 Part No. CT1WSNA Note: Before using this information and the product it supports, read the information in the appendix entitled “Notices.” This document contains proprietary information of IBM. It is provided under a license agreement and is protected by copyright law. The information contained in this publication does not include any product warranties, and any statements provided in this manual should not be interpreted as such. When you send information to IBM, you grant IBM a nonexclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. © Copyright International Business Machines Corporation 1996, 2003. All rights reserved. US Government User Restricted Rights—Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. ii IBM Informix Embedded SQLJ User’s Guide Table of Contents Table of Contents Introduction In This Introduction ................. 3 About This Manual.................. 3 Organization of This Manual ............. 3 Types of Users .................. 4 Software Dependencies ............... 5 Global Language Support .............. 5 Documentation Conventions .............. 6 Typographical Conventions ............. 6 Icon Conventions ................. 7 Additional Documentation ............... 8 Related Manuals ................. 8 Documentation Notes and Release Notes ......... 9 Vendor-Specific Documentation ............ 9 IBM Welcomes Your Comments ............. 10 Chapter 1 Introducing IBM Informix Embedded SQLJ In This Chapter ................... 1-3 What Is Embedded SQLJ? ............... 1-3 How Does Embedded SQLJ Work? ............ 1-4 Embedded SQLJ Versus JDBC .............. 1-5 Chapter 2 Preparing to Use Embedded SQLJ In This Chapter ................... 2-3 What Components Do You Need? ............. 2-3 Setting Up Your Software ............... 2-4 Examples....................
    [Show full text]
  • Part 13:SQL Routines and Types Using the Java™ Programming Language
    INTERNATIONAL ISO/IEC This preview is downloaded from www.sis.se.STANDARD Buy the entire standard via https://www.sis.se/std-9213439075-13 Fourth edition 2016-12-15 Information technology — Database languages — SQL — Part 13: SQL Routines and types using the Java TM programming language (SQL/JRT) Technologies de l’information — Langages de base de données — SQL — Partie 13: Routines et types de SQL utilisant le langage de programmation Java TM (SQL/JRT) Reference number ISO/IEC 9075-13:2016(E) © ISO/IEC 2016 ISO/IEC 9075-13:2016(E) This preview is downloaded from www.sis.se. Buy the entire standard via https://www.sis.se/std-921343 COPYRIGHT PROTECTED DOCUMENT © ISO/IEC 2016, Published in Switzerland All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form orthe by requester. any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below or ISO’s member body in the country of Ch. de Blandonnet 8 • CP 401 ISOCH-1214 copyright Vernier, office Geneva, Switzerland Tel. +41 22 749 01 11 Fax +41 22 749 09 47 www.iso.org [email protected] ii © ISO/IEC 2016 – All rights reserved This preview is downloaded from www.sis.se. Buy the entire standard via https://www.sis.se/std-921343 ISO/IEC 9075-13:2016(E) Contents Page Foreword. vii Introduction. viii 1 Scope. 1 2 Normative references. 3 2.1 ISO and IEC standards.
    [Show full text]
  • Java and SQLJ Versus PL/SQL
    Oracle8i SQLJ Developer’s Guide and Reference Release 3 (8.1.7) July 2000 Part No. A83723-01 SQLJ Developer’s Guide and Reference, Release 3 (8.1.7) Part No. A83723-01 Copyright © 1996, 1999, 2000 Oracle Corporation. All rights reserved. Primary Author: Brian Wright Contributing Author: Ekkehard Rohwedder Contributors: Brian Becker, Alan Thiesen, Lei Tang, Julie Basu, Pierre Dufour, Jerry Schwarz, Risto Lankinen, Cheuk Chau, Vishu Krishnamurthy, Rafiul Ahad, Jack Melnick, Tim Smith, Thomas Pfaeffle, Tom Portfolio, Ellen Barnes, Susan Kraft, Sheryl Maring, Angie Long The Programs (which include both the software and documentation) contain proprietary information of Oracle Corporation; they are provided under a license agreement containing restrictions on use and disclosure and are also protected by copyright, patent, and other intellectual and industrial property laws. Reverse engineering, disassembly, or decompilation of the Programs is prohibited. The information contained in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing. Oracle Corporation does not warrant that this document is error free. Except as may be expressly permitted in your license agreement for these Programs, no part of these Programs may be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without the express written permission of Oracle Corporation. If the Programs are delivered to the U.S. Government or anyone licensing or using the programs on behalf of the U.S. Government, the following notice is applicable: Restricted Rights Notice Programs delivered subject to the DOD FAR Supplement are "commercial computer software" and use, duplication, and disclosure of the Programs, including documentation, shall be subject to the licensing restrictions set forth in the applicable Oracle license agreement.
    [Show full text]