Invoking Java methods as SQLJ stored procedures and functions  Storing and querying XML in the database

Chapter 1: An Introduction to Java in the Database

Storing Java classes as datatypes

With Java in the database, you can install pure Java classes in a SQL system, and then use those classes in a natural manner as datatypes in a SQL database. This capability adds a full object-oriented datatype extension mechanism to SQL, using a model that is widely understood and a language that is portable and widely available. The objects that you create and store with this facility are readily transferable to any Java-enabled environment, either in another SQL system or standalone Java environment.

This capability of using Java classes in the database has two different but complementary uses:





Copyright © 2005. Sybase Inc. All rights reserved. Storing and querying XML in the database

View this book as PDF