Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Semestr2 / 1 - Oracle / Oracle selected docs / Database concepts.pdf
Скачиваний:
29
Добавлен:
12.05.2015
Размер:
6.96 Mб
Скачать

Application Interfaces

JPublisher

Java Publisher (JPublisher) is a program that automatically generates Java class definitions corresponding to object types in the database. Java Publisher facilitates using SQLJ and the JDBC server access package.

See Also: Oracle9i JPublisher User’s Guide

JDBC

Java Database Connectivity (JDBC) is a set of Java interfaces to the Oracle server. Oracle’s JDBC:

Allows access to objects and collection types defined in the database from Java programs through dynamic SQL

Provides for translation of types defined in the database into Java classes through default or customizable mappings

See Also: Oracle9i JDBC Developer’s Guide and Reference

SQLJ

SQLJ allows developers to use object datatypes in Java programs. Developers can use JPublisher to map Oracle object and collection types into Java classes to be used in the application.

SQLJ provides access to server objects using SQL statements embedded in the Java code. SQLJ provides compile-time type checking of object types and collections in the SQL statements.

The syntax is based on an ANSI standard (SQLJ Consortium).

SQLJ Object Types

You can specify Java classes as SQL user-defined object types. You can define columns or rows of this SQLJ type. You can also query and manipulate the objects of this type as if they were SQL primitive types.

Additionally, you can do the following:

Make the static fields of a class visible in SQL

Allow the user to call a Java constructor

Maintain the dependency between the Java class and its corresponding type

Object Datatypes and Object Views 13-21

Соседние файлы в папке Oracle selected docs