A Quick Start: Develop and Run SQLJ Programs Skill Level: Introductory

Total Page:16

File Type:pdf, Size:1020Kb

A Quick Start: Develop and Run SQLJ Programs Skill Level: Introductory A quick start: Develop and run SQLJ programs Skill Level: Introductory Yongli An ([email protected]) DB2 UDB Performance Engineer IBM 02 Dec 2004 Learn how to quickly start using WebSphere Studio Application Developer and DB2 Universal Database to develop SQLJ applications following these very detailed steps using a simple servlet application. This tutorial also provides some basic information about these IBM products and SQLJ-related information. Section 1. Before you start About this tutorial This tutorial is written for those who are interested in coding, testing, and running SQLJ applications using WebSphere Studio Application Developer and DB2 Universal Database. It is also for those who are interested in running their applications in a WebSphere Application Server and DB2 UDB environment. If you are looking for a quick start to have some practical experience, and you don't want to sift through the manuals, this tutorial is for you. For users who have DB2, and one or both of WebSphere Application Server and WebSphere Studio Application Developer installed, he can make use of the ZIP file that comes with this tutorial to get firsthand experience, by following the steps described in this tutorial. Prerequisites In order to do the hands-on exercise to get the quick taste of running SQLJ in WebSphere and DB2, the minimum requirements include having an installation of WebSphere Application Server V5.1, DB2 UDB V8.1 FixPack 4 and WebSphere Studio Application Developer V5.1.2. Each product has the trial version. Users can refer to the individual user manual and instructions that come with the downloaded package to install each product. This tutorial is based on the version of each product A quick start: Develop and run SQLJ programs © Copyright IBM Corporation 1994, 2008. All rights reserved. Page 1 of 30 developerWorks® ibm.com/developerWorks for Windows 2000. Here is the list of software I used: • Microsoft Windows 2000, Service Pack 3 • WebSphere Application Server V5.1 • DB2 Universal Database V8.1 FixPack 4 • WebSphere Studio Application Developer V5.1.2 To run the examples or sample code in this tutorial, you'll need to download the souce file . Section 2. Introduction Introduction SQLJ is a set of programming extensions that allow a programmer using the Java programming language to embed statements that provide SQL (Structured Query Language) database requests. The Java language has been getting increasingly popular. As a result, accessing data in a database from a Java program is getting used more and more widely. There are two standard methods to access relational data in a database: using SQLJ and JDBC. With the latest WebSphere Application Server V5 and DB2 UDB V8 supporting running SQLJ programs, and WebSphere Studio Application Developer V5 supporting developing SQLJ programs, users are now offered a set of products to support the usage of SQLJ. This tutorial uses a simple servlet application accessing a DB2 database through SQLJ to demonstrate how easily the user can start developing SQLJ applications using these IBM products. Along the way, some basic information about these IBM products is also introduced. Section 3. JDBC drivers and DB2 UDB V8 JDBC drivers and DB2 UDB V8 This section discusses some general information about JDBC drivers, and the drivers that are supported in DB2 UDB V8. A quick start: Develop and run SQLJ programs Page 2 of 30 © Copyright IBM Corporation 1994, 2008. All rights reserved. ibm.com/developerWorks developerWorks® JDBC drivers in general In general, Java applications use JDBC for dynamic SQL and they use SQLJ for static SQL. However, because SQLJ can inter-operate with JDBC, an application program can use JDBC and SQLJ within the same unit of work. DB2 Universal Database provides driver support for client applications and applets that are written in Java using JDBC, and for embedded SQL for Java (SQLJ). JDBC is an application programming interface (API) that Java applications use to access relational databases. DB2 UDB support for JDBC lets you write Java applications that access local DB2 data or remote relational data on a server that supports DRDA. SQLJ provides support for embedded static SQL in Java applications. SQLJ was initially developed by IBM, Oracle, and Tandem to complement the dynamic SQL JDBC model with a static SQL model. According to JDBC specifications, there are four types of JDBC driver architectures, as described below. Type 1 : Type 1 includes drivers that implement the JDBC API as a mapping to another data access API, such as Open Database Connectivity (ODBC). Drivers of this type are generally dependent on a native library, which limits their portability. The JDBC-ODBC Bridge driver is an example of a type 1 driver. Type 2 : Type 2 includes drivers that are written partly in the Java programming language and partly in native code. The drivers use a native client library specific to the data source to which they connect. Because of the native code, their portability is limited. Type 3: Type 3 includes drivers that use a pure Java client and communicate with a server using a database-independent protocol. The server then communicates the client's requests to the data source. Type 4: Type 4 includes drivers that are pure Java and implement the network protocol for a specific data source. The client connects directly to the data source. JDBC drivers in DB2 UDB V8 DB2 UDB V8 supports a type 2 driver and a driver that combines type 2 and type 4 JDBC implementations. DB2 UDB V8 also supports a type 3 driver, although this driver is deprecated. The JDBC drivers in previous releases of DB2 UDB for Linux, UNIX, and Windows were built on DB2 CLI (Call Level Interface). The DB2 UDB V8 type 2 and type 3 drivers continue to use the DB2 CLI interface to communicate with DB2 UDB servers. DB2 UDB V8 adds a new DB2 Universal JDBC Driver that is written completely in Java. Below are the drivers that are supported in DB2 UDB V8: DB2 JDBC type 2 driver for Linux, UNIX, and Windows A quick start: Develop and run SQLJ programs © Copyright IBM Corporation 1994, 2008. All rights reserved. Page 3 of 30 developerWorks® ibm.com/developerWorks The DB2 JDBC type 2 driver lets Java applications make calls to DB2 through JDBC. Calls to the DB2 JDBC type 2 driver are translated to Java native methods. The Java applications that use this driver must run on a DB2 client, through which JDBC requests flow to the DB2 server. DB2 Connect Version 8 must be installed before the DB2 JDBC application driver can be used to access DB2 UDB for iSeries data sources or data sources in the DB2 for OS/390 or z/OS environments. The DB2 JDBC type 2 driver supports most JDBC and SQLJ functions that are described in the JDBC 1.2 specification, and some of the methods that are described in the JDBC 2.0 specification. DB2 JDBC type 3 driver for Linux, UNIX, and Windows (deprecated) The DB2 JDBC type 3 driver, which is also known as the applet or net driver, consists of a JDBC client and a JDBC server. The DB2 JDBC applet driver can be loaded by a Web browser along with the applet, or the applet driver can be used in standalone Java applications. When the applet requests a connection to a DB2 database server, the applet driver opens a TCP/IP socket to the DB2 JDBC applet server on the machine where the Web server is running. After a connection is set up, the applet driver sends each of the subsequent database access requests from the applet to the JDBC server through the TCP/IP connection. The JDBC server then makes corresponding DB2 calls to perform the task. On completion, the JDBC server sends the results back to the JDBC client through the connection. The JDBC server process is db2jd. DB2 Universal JDBC driver (type 2 and type 4) The DB2 Universal JDBC Driver is a single driver that includes JDBC type 2 and JDBC type 4 behavior, as well as SQLJ support. When an application loads the DB2 Universal JDBC Driver, a single driver instance is loaded for type 2 and type 4 implementations. The application can make type 2 and type 4 connections using this single driver instance. The type 2 and type 4 connections can be made concurrently. DB2 Universal JDBC Driver type 2 driver behavior is referred to as DB2 Universal JDBC Type 2 Connectivity. DB2 Universal JDBC type 4 driver behavior is referred to as DB2 Universal JDBC Type 4 Connectivity. The Universal Driver is one of the biggest changes in DB2 UDB V8 and it is an architecture-neutral JDBC driver for distributed and local DB2 access. The following tables list the JDBC interfaces and indicate which drivers supports them, the drivers and their supported platforms. Table 1. JDBC drivers for DB2 UDB JDBC driver name Associated DB2 UDB DB2 Universal JDBC Drivercode DB2 UDB for Linux, UNIX, and Windows or DB2 UDB for z/OS JDBC/SQLJ 2.0 Driver for OS/390 DB2 UDB for z/OS DB2 JDBC Type 2 driver for Linux, DB2 UDB for Linux, UNIX, and Windows UNIX, and Windows A quick start: Develop and run SQLJ programs Page 4 of 30 © Copyright IBM Corporation 1994, 2008. All rights reserved. ibm.com/developerWorks developerWorks® Installing the DB2 Universal JDBC Driver If you select JDBC support during the installation of any of the DB2 UDB for Linux, UNIX, and Windows products, the installation program performs some of the installation steps for the DB2 Universal JDBC Driver. The DB2 UDB Version 8 for Windows installation program performs the following tasks: • Installs the db2jcc.jar and sqlj.zip files and adds them to the system CLASSPATH • Installs file db2jcct2.dll, which is required for Universal Type 2 Connectivity, in the sqllib\bin directory Section 4.
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]