Java Database Programming with JDBC:Introduction

Total Page:16

File Type:pdf, Size:1020Kb

Java Database Programming with JDBC:Introduction Java Database Programming with JDBC by Pratik Patel Coriolis, The Coriolis Group ISBN: 1576100561 Pub Date: 10/01/96 Table of Contents Introduction Welcome to the future of database connectivity. The Java Database Connectivity ( JDBC ) specification is a new basis for developers to interface with data sources. The structure of the JDBC is designed to allow developers to program for a standard interface, and let the low-level JDBC driver for different databases deal with the connection and querying of the databases; hence, the developer does not need to worry about dealing with different SQL flavors for each database. The JDBC is also very flexible—a developer doesn’t necessarily lose features specific to the target database. Best of all, the JDBC is based on the Java language! Getting Software The software that you’ll need to get started with the JDBC is readily available on the Web. The JDBC drivers that you will need to connect to your databases are currently available for most popular databases from a variety of software vendors. The basic package you’ll need is the JDBC API, which consists of the core classes of the JDBC. If you don’t already have a Java development kit, such as Javasoft’s JDK, you’ll need that as well. At the time this manuscript was finished, the examples in the book were tested with the JavaSoft JDK, Symantec Cafe, Microsoft J++, and Borland’s C+ + 5.0 with Java support. You can get the JavaSoft JDK at http://www.javasoft.com. The JDBC API, and the ODBC driver for JDBC (that’s right, you can use the JDBC with your current ODBC drivers!) commonly referred to as the JDBC-ODBC bridge can be downloaded at the JDBC Web site at http://splash.javasoft.com/ jdbc. You’ll also find the documentation for the JDBC API at this Web site. If you want to see some of the original JDBC specification, this can be downloaded from the JDBC Web site as well. Overview of Chapters Chapter 1, JDBC: Databases, The Java Way!, begins with a high-level introduction to the JDBC. You’ll see how modular JDBC drivers fit into the development cycle, as well as where ODBC fits into the JDBC’s overall structure. Chapter 2, SQL 101: An Introduction To SQL, takes a quick stroll through SQL, the language of databases. This chapter is a primer on SQL, and is useful if you need to brush up on your data-speak. It provides a basis of reference for some of the SQL queries performed in the JDBC programs in the book. Chapter 3, Using JDBC Drivers, shows you how to install JDBC drivers, as well as how to handle the installation of the JDBC API base classes. A “quick start” section also prepares you for what’s ahead by giving you a simple, but complete JDBC program. Chapter 4, The Interactive SQL Query Applet, takes you head first into the JDBC by presenting a complete Java applet that uses the JDBC. The applet allows a user to enter SQL queries and run them against a database, and to show the results. Chapter 5, Accessing ODBC Services Using JDBC, takes a look at the JDBC-ODBC bridge in detail. Limitations of the bridge, as well as a complete listing of the features of ODBC available in the JDBC, are presented. Chapter 6, SQL Datatypes In Java And ORM, shows you how to map SQL datatypes into Java, and provides a discussion of some of the special classes available in the JDBC API that facilitate the exchange of data between your Java program and the database. Chapter 7, Working With Query Results, provides a pathway for using results fetched from a SQL query. The complete cycle of querying a database, formatting the results, and displaying or printing them in nice graphs is presented with complete source code. A bar graph and pie chart are dynamically created in an applet using data from a query. Chapter 8, The Multimedia JDBC Application: Icon Store, continues the discussion in Chapter 7 by expanding into the realm of multimedia. Streams that contain binary data, such as images, are the focus of this chapter. We’ll show you how to store and retrieve binary data from a database, using the methods available in the JDBC. Chapter 9, Java and Database Security, reflects on the security consideration you need to ponder before you put your JDBC programs into production. The issue of “applet trusting,” and more, is covered in this chapter. Chapter 10, Writing Database Drivers, takes you into the heart of the JDBC with a thorough discussion of the programming details of JDBC drivers. You’ll even see an actual JDBC driver produced, as our SimpleText JDBC driver is hammered out during the chapter. The full source code for this driver is presented in Appendix B, while the intricacies of writing a JDBC driver are explained in detail in this chapter. Chapter 11, Internet Database Issues: Middleware, details three-tier database systems. A three-tier system is developed in this chapter to give you an idea of the functionality possible with these types of “indirect” database access. The full source code for the developed application server and the client are presented, as well as a sample applet that uses the client to query and obtain results from a database. Chapter 12, The JDBC API, provides you with a reference for all of the methods, variables, classes, exceptions, and interfaces that are the JDBC. Table of Contents Java Database Programming with JDBC by Pratik Patel Coriolis, The Coriolis Group ISBN: 1576100561 Pub Date: 10/01/96 Introduction Chapter 1—JDBC: Databases The Java Way! What Is The JDBC? The JDBC Structure ODBC’s Part In The JDBC Summary Chapter 2—SQL 101 The Relational Model And SQL Understanding The Basics Putting It Into Perspective: Schema And Catalog Introducing Keys Using Multiple Tables And Foreign Keys Data Definition Language Declaring Domains Performing Checks Creating Tables Manipulating Tables Data Maintenance Language Data Query Language Coming Up Next Chapter 3—Using JDBC Drivers Quick Start Guide Installing java.sql.* Registering And Calling JDBC Drivers The sql.drivers Property There’s Always A Class For A Name Just Do It JDBC URL And The Connection Using ODBC Drivers Installing The JDBC-ODBC Bridge Setting Up ODBC Drivers Summary Chapter 4—The Interactive—SQL Applet Your First JDBC Applet The Blueprint Getting A Handle On The JDBC Essentials: The Complete Applet Source Code The Look Of The Applet Handling Events Opening The Connection No Guts, No Glory: Executing Queries And Processing Results Wrapping It Up The HTML File That Calls The Applet The Final Product Coming Up Next Chapter 5—Accessing ODBC Services Using JDBC Bridge Requirements The Bridge Is Great, But... The ODBC URL JDBC To ODBC Calls: A Roadmap Chapter 6—SQL Data Types In Java And ORM Mapping SQL Data To Java ResultSetMetaData Understanding The Object Relation Model Mapping A Table Into A Java Object Summary Chapter 7—Working With Query Results A Basic Java Object For Storing Results Showing The Results Charting Your Data Summary Chapter 8—The IconStore Multimedia JDBC Application IconStore Requirements Building The Database Application Essentials Writing The main Method Establishing The Database Connection Creating The Menu Creating The Lists Handling Events Saving The Image Summary Chapter 9—Java And Database Security Database Server Security Rooting Out The Packet Sniffers Web Server CGI Holes Finding A Solution Applet Security: Can I Trust You? The Applet Security Manager I’m A Certified Applet Summary Chapter 10—Writing Database Drivers The JDBC Driver Project: SimpleText SimpleText SQL Grammar SimpleText File Format The DriverManager JDBC Exception Types JDBC Data Types Character Data: CHAR, VARCHAR, And LONGVARCHAR Exact Numeric Data: NUMERIC And DECIMAL Binary Data: BINARY, VARBINARY, And LONGVARBINARY Boolean Data: BIT Integer Data: TINYINT, SMALLINT, INTEGER, And BIGINT Floating-Point Data: REAL, FLOAT, And DOUBLE Time Data: DATE, TIME, And TIMESTAMP New Data Classes Numeric Date Time Timestamp Native Drivers: You’re Not From Around Here, Are Ya? Implementing Interfaces Tracing Turning On Tracing Writing Tracing Information Checking For Tracing Data Coercion Escape Clauses Date, Time, And Timestamp Scalar Functions LIKE Predicate Escape Characters Outer Joins Procedures The JDBC Interfaces Driver Connection DatabaseMetaData Statement PreparedStatement ResultSet ResultSetMetaData Summary Chapter 11—Internet Database Issues: Middleware Connectivity Issues Involved With Database Access Advantages Of Middleware Disadvantages Of Middleware The Application Server: A Complete Example With Code The Client: A Complete Example With Code Summary Chapter 12—The JDBC API Classes public class Date public class DriverManager public class DriverPropertyInfo public final class Numeric public class Time public class TimeStamp public class Types Interfaces public interface CallableStatement public interface Connection public interface DatabaseMetaData public interface Driver public interface PreparedStatement public interface ResultSet public interface ResultSetMetaData public interface Statement Exceptions public class DataTruncation public class SQLException public class SQLWarning Appendix A Appendix B Appendix C Appendix D Index Java Database Programming with JDBC by Pratik Patel Coriolis, The Coriolis Group ISBN: 1576100561 Pub Date: 10/01/96 Previous Table of Contents Next Chapter 1 JDBC: Databases The Java Way! The Internet has spurred the invention of several new technologies in client/server computing—the most recent of which is Java. Java is two-dimensional: It’s a programming language and also a client/server system in which programs are automatically downloaded and run on the local machine (instead of the server machine). The wide embrace of Java has prompted its quick development. Java includes Java compilers, interpreters, tools, libraries, and integrated development environments (IDEs). Javasoft is leading the way in the development of libraries to extend the functionality and usability of Java as a serious platform for creating applications.
Recommended publications
  • Doxydoxygen User Guide Release 0.79.4
    DoxyDoxygen User Guide Release 0.79.4 20Tauri Aug 16, 2021 MANUAL 1 Welcome to DoxyDoxygen 1 2 Installation 3 2.1 Software installation with Package Control...............................3 2.2 Manual software installation.......................................3 2.3 License installation............................................4 2.4 EULA (End User License Agreement)..................................4 2.4.1 Licenses.............................................4 2.4.2 Description of other rights and limitations...........................4 2.4.3 No warranties..........................................5 3 Usage 7 3.1 Create a documentation block......................................7 3.2 Update / wrap an existing documentation block.............................8 3.3 Switch between comment styles.....................................9 3.4 Extend a documentation block......................................9 3.4.1 Auto-completion........................................9 3.4.2 Comment continuation..................................... 10 3.5 Navigate in documentation........................................ 10 3.5.1 Move to the right column.................................... 10 3.5.2 Follow references........................................ 10 3.6 Fold / Unfold comments......................................... 11 3.7 Translate................................................. 11 3.8 Generate documentation......................................... 12 4 Customization 13 4.1 Settings.................................................. 13 4.1.1 Understand
    [Show full text]
  • DM2 Week 15 PHP Mysql.Pptx
    PHP and MySQL ATLS 3020 Digital Media 2 Aileen Pierce Web Database Applications PHP Working with Databases ¤ PHP scripts can easily access many different databases ¤ MySQL ¤ Oracle ¤ Informix ¤ mSQL ¤ ODBC ¤ PHP provides functions that begin with mysqli_ to access MySQL databases. PHP Communicating with MySQL ¤ PHP works with MySQL using the following process: 1. Connect to MySQL 2. Prepare a SQL statement 3. Execute the statement and save the result 4. Extract the data from the result 5. Prepare the resulting page Connecting PHP to MySQL ¤ Connect to MySQL $dbc= mysqli_connect(“hostname”, “username”, “password”, “db_name”); ¤ Hostname is the URL of the MySQL server. ¤ Use localhost if PHP and MySQL servers are on the same machine (as on redwood). ¤ Username and password are for MySQL. ¤ Database name is identikey+db (apiercedb) ¤ Must assign the connection to a variable to use throughout your script. Connecting PHP to MySQL ¤ mysqli_connect_error() returns an error if the connection is not made. $dbc= mysqli_connect(“hostname”, “username”, “password”, “db_name”) OR die ('Could not connect to MySQL: ' . mysqli_connect_error() ); ¤ die() will cause the script to exit ¤ Prints out an error message SQL Statements ¤ The mysqli_query() function allows you to pass any SQL command to the database and the result is returned. $result= mysqli_query(“db connection”, “SQL”); ¤ Use phpmyadmin to help you create the SQL statement $result = mysqli_query($dbc, “SELECT * from drink” ); SQL Statements ¤ Or assign the SQL statement to a variable $sql = “INSERT INTO drink (name, caf, whip, calories) VALUES ('cappuccino', 'yes', 'no', '90')”; ¤ Then pass the SQL statement to the database connection $result = mysqli_query($dbc, $sql); ¤ You must assign the result to a variable.
    [Show full text]
  • Java™ Technology Test Suite Development Guide
    Java™ Technology Test Suite Development Guide 1.2 For Java Compatibility Test Suite Developers Sun Microsystems, Inc. 901 San Antonio Road Palo Alto, CA 94303 U.S.A. 650-960-1300 November 2003 Copyright © 2003 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved. THIS SOFTWARE CONTAINS CONFIDENTIAL INFORMATION AND TRADE SECRETS OF SUN MICROSYSTEMS, INC. USE, DISCLOSURE OR REPRODUCTION IS PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SUN MICROSYSTEMS, INC. U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, the Sun logo, Sun Microsystems, Java, the Java Coffee Cup logo, JavaTest, Java Community Process, JCP,J2SE, Solaris and Javadoc are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. The Adobe®logo is a registered trademark of Adobe Systems, Incorporated. This distribution may include materials developed by third parties. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. The Adobe® logo is a registered trademark of Adobe Systems, Incorporated. Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S.
    [Show full text]
  • Java Programming Standards & Reference Guide
    Java Programming Standards & Reference Guide Version 3.2 Office of Information & Technology Department of Veterans Affairs Java Programming Standards & Reference Guide, Version 3.2 REVISION HISTORY DATE VER. DESCRIPTION AUTHOR CONTRIBUTORS 10-26-15 3.2 Added Logging Sid Everhart JSC Standards , updated Vic Pezzolla checkstyle installation instructions and package name rules. 11-14-14 3.1 Added ground rules for Vic Pezzolla JSC enforcement 9-26-14 3.0 Document is continually Raymond JSC and several being edited for Steele OI&T noteworthy technical accuracy and / PD Subject Matter compliance to JSC Experts (SMEs) standards. 12-1-09 2.0 Document Updated Michael Huneycutt Sr 4-7-05 1.2 Document Updated Sachin Mai L Vo Sharma Lyn D Teague Rajesh Somannair Katherine Stark Niharika Goyal Ron Ruzbacki 3-4-05 1.0 Document Created Sachin Sharma i Java Programming Standards & Reference Guide, Version 3.2 ABSTRACT The VA Java Development Community has been establishing standards, capturing industry best practices, and applying the insight of experienced (and seasoned) VA developers to develop this “Java Programming Standards & Reference Guide”. The Java Standards Committee (JSC) team is encouraging the use of CheckStyle (in the Eclipse IDE environment) to quickly scan Java code, to locate Java programming standard errors, find inconsistencies, and generally help build program conformance. The benefits of writing quality Java code infused with consistent coding and documentation standards is critical to the efforts of the Department of Veterans Affairs (VA). This document stands for the quality, readability, consistency and maintainability of code development and it applies to all VA Java programmers (including contractors).
    [Show full text]
  • Java Code Documentation Example
    Java Code Documentation Example Fruitless Martino sometimes quick-freeze his peritonitis hugely and night-club so dispraisingly! Glottogonic and sublinear Finn melt his bodice permeates podding benevolently. Oswald usually medicines surgically or orbs telescopically when polyunsaturated Hugh dement evidentially and lewdly. The javadoc itself an unsupported extension and is also important in the description for code documentation comment merely repeats the banner section DocsapijavanetURLhtmlgetAuthority-- a method getAuhority in the. API reference code comments Google Developers. Omitting many times classes being documented type, and java example of each field, all trademarks and description below code completion window, which we used to. Java Programming Style Guide. The keyboard shortcut to comment multiple in Windows is shift alt A. 10 Best Practices to multiple While Writing Code Javarevisited. Concise presentations of java programming practices tasks and conventions amply illustrated with syntax highlighted code examples. Java Documentation Comments Tutorialspoint. Java Programming Guidelines. If this tag easily comment related comments java code, this user to new field in the dependency. The following examples demonstrate a pain line summary followed by detailed documentation in song three. CS 302 Commenting Guide Program Commenting Guide File. For sober you spawn use author tag to identify the author of a. Opinions expressed by the code example code documentation is overridden in the documentation for example code base classes and decide to allow bikes to achieve these methods. Example slope from the Javadoc documentation code can be documented inline Single Line comments are started by each may be positioned after a. The Documentation Comment Specification permits leading asterisks on enough first.
    [Show full text]
  • The Java® Language Specification Java SE 8 Edition
    The Java® Language Specification Java SE 8 Edition James Gosling Bill Joy Guy Steele Gilad Bracha Alex Buckley 2015-02-13 Specification: JSR-337 Java® SE 8 Release Contents ("Specification") Version: 8 Status: Maintenance Release Release: March 2015 Copyright © 1997, 2015, Oracle America, Inc. and/or its affiliates. 500 Oracle Parkway, Redwood City, California 94065, U.S.A. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. The Specification provided herein is provided to you only under the Limited License Grant included herein as Appendix A. Please see Appendix A, Limited License Grant. To Maurizio, with deepest thanks. Table of Contents Preface to the Java SE 8 Edition xix 1 Introduction 1 1.1 Organization of the Specification 2 1.2 Example Programs 6 1.3 Notation 6 1.4 Relationship to Predefined Classes and Interfaces 7 1.5 Feedback 7 1.6 References 7 2 Grammars 9 2.1 Context-Free Grammars 9 2.2 The Lexical Grammar 9 2.3 The Syntactic Grammar 10 2.4 Grammar Notation 10 3 Lexical Structure 15 3.1 Unicode 15 3.2 Lexical Translations 16 3.3 Unicode Escapes 17 3.4 Line Terminators 19 3.5 Input Elements and Tokens 19 3.6 White Space 20 3.7 Comments 21 3.8 Identifiers 22 3.9 Keywords 24 3.10 Literals 24 3.10.1 Integer Literals 25 3.10.2 Floating-Point Literals 31 3.10.3 Boolean Literals 34 3.10.4 Character Literals 34 3.10.5 String Literals 35 3.10.6 Escape Sequences for Character and String Literals 37 3.10.7 The Null Literal 38 3.11 Separators
    [Show full text]
  • Java Api Documentation Generator
    Java Api Documentation Generator Select Download Format: Download Java Api Documentation Generator pdf. Download Java Api Documentation Generator doc. examplesDeem appropriate are made javadoc, by default. the Alsojava documentationbe used as image generator files you reads design, all code,making copy a printer. to advanced As a much implementationthe generator classes is responsive through and initial use? overview Dependency summary chain and they how do to aircrafthook up of a the super url. classOas definitionnames and can hasbe just been created written by a thefree! play. Nifty Command search in linegenerating description api documentationand then outputs that a milliondemonstrates developers how have to also sunconsume conventions an optionalshort for chrome summary is copied and for documentation.your research! Sql Accompanying auto recompile the processopen source to load code plugins by the for annotationsinstance the ortools. more. Can Blog easily posts generate by class similar or conditions output format of documentation of the java files output or any any additional pattern in. Various youmethods can be and downloaded get access andto the it? webProbably service take operations a user has in yourdeveloped oas and are is they that? use Streamlined to find user approach friendly mayoutput be any the ofindex. api? BothContaining machines only and for theis very generator much timedoes i notstill properlya simpler parsed and formats through the any service. import path producedArgument byis mydefault javascript or inline api tag documentation and price. Scope generator of as istheir a replacement. java documentation Inspired generator by describing is the the value. facilitatingPosts by tools interaction. like adding We extendedfound in the descriptions, classpath environmentwrite og tag isvariable, it? During and its website uses of in api number generator of class.
    [Show full text]
  • Oracle® Transparent Gateway for Microsoft SQL Server Administrator’S Guide 10G Release 2 (10.2) for Microsoft Windows (32-Bit) B14270-01
    Oracle® Transparent Gateway for Microsoft SQL Server Administrator’s Guide 10g Release 2 (10.2) for Microsoft Windows (32-bit) B14270-01 June 2005 Oracle Transparent Gateway for Microsoft SQL Server Administrator’s Guide, 10g Release 2 (10.2) for Microsoft Windows (32-bit) B14270-01 Copyright © 2002, 2005, Oracle. All rights reserved. Primary Author: Amitai Sela Contributing Author: Laurel Hale, Cynthia Kibbe, Kishan Peyetti, Juan Ahues-Vasquez, Govind Lakkoju Contributor: Orit Curiel, Jacco Draaijer, Vira Goorah 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. GOVERNMENT RIGHTS Programs, software, databases, and related documentation and technical data delivered to U.S.
    [Show full text]
  • Java Platform, Standard Edition Javadoc Guide
    Java Platform, Standard Edition Javadoc Guide Release 14 F23120-01 March 2020 Java Platform, Standard Edition Javadoc Guide, Release 14 F23120-01 Copyright © 2014, 2020, Oracle and/or its affiliates. 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 embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are "commercial computer software" or “commercial computer software documentation” pursuant to the applicable Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction, duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle programs (including any operating system, integrated software, any programs embedded, installed or activated on delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract.
    [Show full text]
  • A Relational Multi-Schema Data Model and Query Language for Full Support of Schema Versioning?
    A Relational Multi-Schema Data Model and Query Language for Full Support of Schema Versioning? Fabio Grandi CSITE-CNR and DEIS, Alma Mater Studiorum – Universita` di Bologna Viale Risorgimento 2, 40136 Bologna, Italy, email: [email protected] Abstract. Schema versioning is a powerful tool not only to ensure reuse of data and continued support of legacy applications after schema changes, but also to add a new degree of freedom to database designers, application developers and final users. In fact, different schema versions actually allow one to represent, in full relief, different points of view over the modelled application reality. The key to such an improvement is the adop- tion of a multi-pool implementation solution, rather that the single-pool solution usually endorsed by other authors. In this paper, we show some of the application potentialities of the multi-pool approach in schema versioning through a concrete example, introduce a simple but comprehensive logical storage model for the mapping of a multi-schema database onto a standard relational database and use such a model to define and exem- plify a multi-schema query language, called MSQL, which allows one to exploit the full potentialities of schema versioning under the multi-pool approach. 1 Introduction However careful and accurate the initial design may have been, a database schema is likely to undergo changes and revisions after implementation. In order to avoid the loss of data after schema changes, schema evolution has been introduced to provide (partial) automatic recov- ery of the extant data by adapting them to the new schema.
    [Show full text]
  • Filemaker 16 ODBC and JDBC Guide
    FileMaker®16 ODBC and JDBC Guide © 2004–2017 FileMaker, Inc. All Rights Reserved. FileMaker, Inc. 5201 Patrick Henry Drive Santa Clara, California 95054 FileMaker, FileMaker Go, and the file folder logo are trademarks of FileMaker, Inc. registered in the U.S. and other countries. FileMaker WebDirect and FileMaker Cloud are trademarks of FileMaker, Inc. All other trademarks are the property of their respective owners. FileMaker documentation is copyrighted. You are not authorized to make additional copies or distribute this documentation without written permission from FileMaker. You may use this documentation solely with a valid licensed copy of FileMaker software. All persons, companies, email addresses, and URLs listed in the examples are purely fictitious and any resemblance to existing persons, companies, email addresses, or URLs is purely coincidental. Credits are listed in the Acknowledgments documents provided with this software. Mention of third-party products and URLs is for informational purposes only and constitutes neither an endorsement nor a recommendation. FileMaker, Inc. assumes no responsibility with regard to the performance of these products. For more information, visit our website at http://www.filemaker.com. Edition: 01 Contents Chapter 1 Introduction 5 About this guide 5 Where to find FileMaker documentation 5 About ODBC and JDBC 6 Using FileMaker software as an ODBC client application 6 Importing ODBC data 6 Adding ODBC tables to the relationships graph 6 Using a FileMaker database as a data source 7 Accessing a
    [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 Static 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 precompiler and target interface n resulting code is not portable 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 preprocessor is still required n only late query compilation n same drawbacks regarding portability as for static embedded 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, allows to write/produce binary-portable programs 3 © Prof.Dr.-Ing. Stefan Deßloch Middleware for Information Systems Coupling Approaches (Examples)
    [Show full text]