Home > Store

Open-Source Components for Informix Dynamic Server 9.x

Register your product to gain access to bonus material or receive a coupon.

Open-Source Components for Informix Dynamic Server 9.x

Book

  • This product currently is not for sale.
Not for Sale

Description

  • Copyright 2002
  • Dimensions: K
  • Pages: 512
  • Edition: 1st
  • Book
  • ISBN-10: 0-13-042827-2
  • ISBN-13: 978-0-13-042827-1

The fast, easy way to leverage IDS 9.x's full object-relational power!

  • Supercharge your next IDS-9.x application!
  • "Bladelets": easy DataBlade building blocks for powerful object-relational solutions
  • Covers Vtables, temporal data management, hierarchical problems, text manipulation, BLOBs, and much more
  • CD-ROM: Open source bladelet code for solving a wide range of business problems

Object-relational databases offer immense power — but many database professionals have failed to use it, because doing so required them to write their own DataBlade extensions. This book presents a breakthrough solution: bladelets. Created by a team of Informix' leading DataBlade experts, bladelets serve as building blocks, bringing Informix Dynamic Server 9.x ORDBMS power to bear on a wide range of business problems, while requiring far less original programming.

All ten bladelets are covered in detail, with open source code provided on CD-ROM. Whether you use them "as is," or as the model for your own DataBlades, they can dramatically improve the performance, value, and time-to-market of your very next database application. Coverage includes:

  • Solving hierarchical problems
  • Extending SQL to support temporal data management
  • Accessing external files through SQL
  • Using SQL as a data type
  • Overcoming database portability problems
  • Manipulating text with regular expressions
  • Removing LVARCHAR size limits
  • Using BLOBs more effectively
  • Managing multiple versions of your data with virtual tables, and much more
CD-ROM INCLUDED

The accompanying CD-ROM contains all of the book's code examples — plus a toolbox of open-source DataBlades, complete with source code, designed to quickly solve a wide range of business problems.

Sample Content

Online Sample Chapter

Taking Advantage of Database Extensibility

Table of Contents



Preface.


Acknowledgments.


1. Taking Advantage of Database Extensibility.

Software Extensibility. How Do We Call It? IDS 9.x Object-Relational Features. Usage Examples. A New Approach to Problem Solving. What's Next?



2. Solving Hierarchical Problems with the Node Component.

Node and Hierarchies. Node versus Relational Implementation. Hierarchical Problems. Functions Overview. Indexing and SQL Statements. Client Access. Installation. Limitations and Improvements. Node Component Location. Acknowledgments.



3. Time Is on Our Side: Temporal Extensions to SQ.

Introduction to Temporal Data Management. Shortcomings of SQL-92 and Goals of the Period Bladelet. Overview of Period Bladelet. UDTs in Period Bladelet. UDFs for Temporal Operations. UDA. Statistics and Selectivity. Summary and Conclusions.



4. Accessing External Files through SQL.

RDBMS Characteristics. The VTI Interface. VTI Description. The Flat-File Interface. Creating an Access Method. Creating a Table. Using the Table. Supported Types. Installation. Registration. Removal. Limitations and Improvements. Flat-File Component Location. Acknowledgments. Reference.



5. SQL as a Data Type.

Overview of the Exec SQL Bladelet. Drawbacks and Limitations. Implementation Details for Exec SQL Bladelet. Application Example Using Exec SQL Bladelet. Summary and Conclusions.



6. Managing a World of Shapes.

The Problem That Shapes Solves. Shape Data Types. Functions Overview. Indexing and SQL Statements. Client Access. Installation. Limitations. Shapes Bladelet Location. Acknowledgments.



7. Whose SQL Is It?

How Do Nonstandard Features Come About? Why Not Stick to Standards? Solving the Portability Problem. Example 1: Oracle Compatibility. Example 2: IBM Compatibility. Conclusion. Obtaining SqlLib and Iutil. Acknowledgments.



8. Manipulating Text with Regular Expressions.

Regular Expressions. Regexp SQL Routines Overview. Built-in SQL Functions Overview. Regexp versus Built-In SQL Functions. Performance. Installation. Limitations and Improvements. Regexp Bladelet Location. Acknowledgments.



9. Removing the LVARCHAR Size Limit.

The Problem That mrLvarchar Solves. Candidate Data Types. Functions Overview. Inserting Data. Selecting and Searching Data. Extracting Substrings. Modifying Data. System Administration. Indexing and SQL Statement. Client Access. Installation. Limitations. mrLvarchar Bladelet Location. Acknowledgments.



10. Images Are Data, Too.

Using BLOBs in Image-Enabled Applications. The JPEG Image Format. The LLD Module. JPGImage Bladelet Features. Using the JPGImage Bladelet. Conclusion. JPGImage Bladelet Locatio. Acknowledgments.



11. Multiple Versions of Your Data.

Using VTable. Limitations and Future Enhancements. Where to Get the VTable Distribution. Acknowledgments.



Appendix A: Node Bladelet Functions Reference.


Appendix B: Period Bladelet Functions Reference.


Appendix C: Flat-File Interface Functions Reference.


Appendix D: Exec SQL Bladelet Functions Reference.


Appendix E: Shapes Bladelet Functions R

Preface

Preface

When we look at the evolution of programming languages, we quickly notice that the programmer's productivity increases with the level of abstraction of the language. The step from binary code to assembler greatly increased productivity because it took care of translating symbolic addresses and variables to their corresponding memory addresses. Third-generation languages added structures and programming constructs, providing yet another jump in productivity. One of the most underrated features is function prototyping, which was added to some languages when object-oriented languages started gaining momentum. This gave the compiler additional information to check for proper argument types, reducing a number of run-time errors that were often difficult to locate.

The rise of object-oriented programming languages provided a more formal way to encapsulate functionality and divide complex problems into subcomponents. In today's object-oriented languages we also find prepackaged object classes, such as the Java Class Libraries, that provide a solution to common problems that occur frequently in most systems. This frees the programmer from these tasks, increasing productivity.

What has happened on the database side? A lot of progress was made on database administration over the last 20 years. On the programming side, we've seen the creation of stored procedure languages that can run procedural code over Structured Query Language (SQL) statements in the database. This improvement was added to relational databases several years ago. Furthermore, this had little impact on the database system as it consists of adding a procedural programming language closer to the database. This procedure language improves performance by reducing the

overhead of data transfer between the database and the application. Because stored procedures are old news by now, it led industry analysts to declare that databases are now a commodity. Of course, they are commodity products as long as you are willing to program to the lowest common denominator. This means that you use as few features as possible and make your life more difficult. This leads to longer development time and slower performance.

Several years ago, a new database model appeared, the object-relational database. Because this model builds on the relational model, it is its superset. This has the benefit of preserving sizable investments made in relational databases over the last few decades. Some of the benefits of this new model were recognized and a new SQL standard was created to describe it. The relational model is opened up to allow programmers the capability to add new functionality that will make the database better suited to a specific business environment.

The new standard talks about adding new data types and functions in the database server. What do we do with these new features? For some reasons, this new functionality has been understood as something to support multimedia. Nothing could be further from the truth. It is about using the proper business and support types and business functions to arrive at a more optimal solution. A few books discussing the implementation of the object-relational technology tried to address this issue. These books include:

  • Object-Relational DBMSs: The Next Great Wave
    Michael Stonebraker with Dorothy Moore
    ASIN: 1-55-860397-2 (out of print)
  • Object-Relational DBMSs: Tracking the Next Great Wave
    Michael Stonebraker, Dorothy Moore (contributor), Paul Brown
    ISBN: 1-55-860452-9
  • Informix Dynamic Server.2000: Server-Side Programming in C
    Jacques Roy
    ISBN 0-13-013709-X
  • Object-Relational Database Development: A Plumber's Guide
    Paul Brown
    ISBN 0-13-019460-3

These books cover multiple examples of application of the new technology, analysis, design, and implementation of your solutions. So, what's missing?

Until now, it appeared that you had two choices:

  • Buy a commercial DataBlade module such as the spatial, TimeSeries, and Text DataBlades.
  • Write your own extensions from scratch.

There is space for at least one more possibility. Many business applications can use simpler extensions that can be used as components in a larger solution. The Informix team has dubbed these Bladelets. They consist of smaller packages that provide some utility functionality. This is similar to foundation classes in many object-oriented languages. They are building blocks that allow you to build your business systems starting at a higher level of abstraction: You don't need to start by writing the equivalent of your own string class.

This book takes a different approach from its predecessors. Instead of assuming that people want to build their own extensions from scratch, it introduces a set of extensions that can be used as tools to build business solutions. These extensions can be quickly added to a database and used within SQL statements. The development effort is now spent in designing new solutions and writing the appropriate SQL statements. Because people are already familiar with SQL, it requires little effort to review the new "verbs" and data types available. The increase in productivity is almost instantaneous!

This book covers a varied set of Bladelets that cover a wide range of problems. Each chapter introduces one open-source component, or Bladelet. The focus is more on where the component can be used than how to use it. The chapter's corresponding appendix goes into the details of the functionality. With examples on how to use the component, the designer is better equipped to imagine more efficient approaches to solve critical business problems.

This book covers a subset of the Bladelets available. The descriptions provided will hopefully help you figure out better ways to solve your business problems. Other Bladelets can be useful to you. They are available in the Informix Developers' Network Web site, under the DataBlade developer's corner. The Web site address is:

www.informix.com/idn

This is also where you can find up-to-date code for the Bladelets described in this book. The two locations to look at are:

www.informix.com/idn-secure/DataBlade/Library/downloads.htmwww.informix.com/idn-secure/foundation/WebPages/bladelets.htm

You can also send questions and comments to the people maintaining this site using the following email address: idn-datablades @informix.com. You can also make suggestions for new Bladelets.

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020