This preface introduces you to the Oracle Database JPublisher User's Guide, discussing the intended audience, structure, and conventions of this document. A list of related Oracle documents is also provided.
The JPublisher utility is for Java programmers who want classes in their applications to correspond to SQL or PL/SQL entities or server-side Java classes.
This preface covers the following topics:
The Oracle Database JPublisher User's Guide is intended for Java Database Connectivity (JDBC) and Java2 Platform, Enterprise Edition (J2EE) programmers who want to accomplish any of the following for database applications:
Create Java classes to map to SQL user-defined types, including object types, VARRAY
types, and nested table types
Create Java classes to map to OPAQUE
types
Create Java classes to map to PL/SQL packages
Create client-side Java stubs to call server-side Java classes
Publish SQL queries or data manipulation language (DML) statements as methods in Java classes
Create Java and PL/SQL wrappers for Web services client proxy classes
Publish server-side SQL, PL/SQL, or Java entities as Web services
To use this document, you need knowledge of Java, Oracle Database, SQL, PL/SQL, and JDBC.
For information about Oracle's commitment to accessibility, visit the Oracle Accessibility Program website at http://www.oracle.com/pls/topic/lookup?ctx=acc&id=docacc
.
Oracle customers have access to electronic support through My Oracle Support. For information, visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=info
or visit http://www.oracle.com/pls/topic/lookup?ctx=acc&id=trs
if you are hearing impaired.
Accessibility of Links to External Web Sites in Documentation
This documentation may contain links to Web sites of other companies or organizations that Oracle does not own or control. Oracle neither evaluates nor makes any representations regarding the accessibility of these Web sites.
Deaf/Hard of Hearing Access to Oracle Support Services
To reach Oracle Support Services, use a telecommunications relay service (TRS) to call Oracle Support at 1.800.223.1711. An Oracle Support Services engineer will handle technical issues and provide customer support according to the Oracle service request process. Information about TRS is available at http://www.fcc.gov/cgb/consumerfacts/trs.html
, and a list of phone numbers is available at http://www.fcc.gov/cgb/dro/trsphonebk.html
.
This document contains:
Chapter 1, "Introduction to JPublisher"
Introduces the JPublisher utility by way of examples, lists new JPublisher features in this release, and provides an overview of JPublisher operations.
Describes how you can use JPublisher for publishing SQL and PL/SQL objects, Oracle Stream Advanced Queue (AQ), server-side Java classes, and Web services.
Chapter 3, "Data Type and Java-to-Java Type Mappings"
Provides details of JPublisher data type mappings and the styles mechanism for Java-to-Java type mappings.
Chapter 5, "Generated Classes and Interfaces"
Discusses details and concepts of the classes, interfaces, and subclasses generated by JPublisher, including how output parameters (PL/SQL IN OUT
or OUT
parameters) are treated, how overloaded methods are translated, and how the generated classes and interfaces are used.
Chapter 4, "Additional Features and Considerations"
Covers additional JPublisher features and considerations: a summary of support for Web services, filtering of JPublisher output, and migration and backward compatibility.
Chapter 6, "Command-Line Options and Input Files"
Provides details of the JPublisher command-line syntax, command-line options and their usage, and input file format.
Appendix A, "Generated Code Examples"
Contains code examples that are too lengthy to fit conveniently with corresponding material earlier in the manual. This includes examples of Java-to-Java type transformations to support Web services, and Java and PL/SQL wrappers to support Web services.
Covers the troubleshooting tips for JPublisher
For more information, see the following Oracle resources.
From the Oracle Java Platform group, for Oracle Database releases:
Oracle Database Java Developer's Guide
This book introduces the basic concepts of Java in Oracle Database and provides general information about server-side configuration and functionality. It contains information that pertains to the Oracle Database Java environment in general, rather than to a particular product, such as JDBC.
The book also discusses Java stored procedures, which are programs that run directly in Oracle Database. With stored procedures (functions, procedures, and triggers), Java developers can implement business logic at the server level, which improves application performance, scalability, and security.
Oracle Database JDBC Developer's Guide
This book covers programming syntax and features of the Oracle implementation of the JDBC standard. This includes an overview of the Oracle JDBC drivers, the details of the Oracle implementation of JDBC 1.22, 2.0, and 3.0 features, and a discussion of Oracle JDBC type extensions and performance extensions.
From the Oracle Java Platform group, for Oracle Application Server releases:
Oracle Application Server Containers for J2EE Developer’s Guide
Oracle Application Server Containers for J2EE Services Guide
Oracle Application Server Containers for J2EE Security Guide
Oracle Application Server Containers for J2EE Servlet Developer's Guide
Oracle Application Server Containers for J2EE Support for JavaServer Pages Developer's Guide
Oracle Application Server Containers for J2EE JSP Tag Libraries and Utilities Reference
Oracle Application Server Containers for J2EE Enterprise JavaBeans Developer's Guide
From the Oracle Server Technologies group:
Note:
Oracle error message documentation is available in HTML only. Only if you have access to the Oracle Documentation CD, you can browse the error messages by range. After you find the specific range, use the Find in Page feature of your browser to locate the specific message. When connected to the Internet, you can search for a specific error message using the error message search feature of the Oracle online documentation.From the Oracle Application Server group:
From the Oracle JDeveloper group:
JDeveloper online help
JDeveloper documentation on the Oracle Technology Network:
http://www.oracle.com/technetwork/developer-tools/jdev/overview/index.html
To download free release notes, installation documentation, white papers, or other collateral, visit the Oracle Technology Network (OTN). You must register online before using OTN. Registration is free and can be done at
http://www.oracle.com/technetwork/community/join/overview/index.html
If you already have a user name and password for OTN, then you can go directly to the documentation section of the OTN Web site at
http://www.oracle.com/technetwork/documentation/index.html
For additional information about JAX-RPC and holders and access to the Java API for XML-based RPC, JAX-RPC 1.0 specification, visit the following site:
http://jcp.org/aboutJava/communityprocess/final/jsr101/index.html
For Java Development Kit (JDK) users, the following link contains native2ascii
documentation, including information about character encoding that is supported by Java environments.
http://download.oracle.com/javase/1.3/docs/tooldocs/solaris/native2ascii.html
This section describes the conventions used in the text and code examples of this documentation set. It describes:
We use various conventions in text to help you quickly identify special terms. The following table describes these conventions and provides examples of their use.
Convention | Meaning | Example |
---|---|---|
Bold | Bold typeface indicates terms defined in the text. | A class is a blueprint that defines the variables and the methods common to all objects of a certain kind. |
Italics | Italic typeface indicates book titles and emphasis. | Oracle Database Concepts
Ensure that the recovery catalog and target database do not reside on the same disk. |
UPPERCASE monospace (fixed-width) font |
Uppercase monospace typeface indicates system elements. Such elements include parameters, privileges, data types (including user-defined types), RMAN keywords, SQL keywords, SQL*Plus or utility commands, packages and methods, as well as system-supplied column names, database objects and structures, user names, and roles. | You can specify this clause only for a NUMBER column.
You can back up the database by using the Query the Use the |
lowercase monospace (fixed-width) font |
Lowercase monospace typeface indicates executables, file names, directory names, and some user-supplied elements. Such elements include computer and database names, net service names, and connect identifiers, as well as Java packages and classes, program units, and parameter values.
Note: Some programmatic elements use a mixture of UPPERCASE and lowercase. Enter these elements as shown. |
Enter sqlplus to start SQL*Plus.
The password is specified in the Back up the data files and control files in the The Set the The |
lowercase italic monospace (fixed-width) font |
Lowercase italic monospace font represents placeholders or variables. | You can specify the parallel_clause .
Run |
Code examples illustrate Java, SQL, PL/SQL, SQL*Plus, or command-line statements. They are displayed in a monospace (fixed-width) font and separated from typical text as shown in this example:
SELECT username FROM dba_users WHERE username = 'MIGRATE';
The following table describes typographic conventions used in code examples and provides examples of their use.
Convention | Meaning | Example |
---|---|---|
[ ] |
Brackets enclose one or more optional items. Do not enter the brackets. |
DECIMAL (digits [ , precision ]) |
{ } |
Braces enclose two or more items, one of which is required. Do not enter the braces. |
{ENABLE | DISABLE} |
| |
A vertical bar represents a choice of two or more options within brackets or braces. Enter one of the options. Do not enter the vertical bar. |
{ENABLE | DISABLE} [COMPRESS | NOCOMPRESS] |
... |
Horizontal ellipsis points indicate either:
|
CREATE TABLE ... AS subquery; SELECT col1, col2, ... , coln FROM employees; |
Other notation | You must enter symbols other than brackets, braces, vertical bars, and ellipsis points as shown. |
acctbal NUMBER(11,2); acct CONSTANT NUMBER(4) := 3; |
Italics
|
Italicized text indicates placeholders or variables for which you must supply particular values. |
CONNECT SYSTEM/system_password DB_NAME = database_name |
UPPERCASE |
Uppercase typeface indicates elements supplied by the system. We show these terms in uppercase in order to distinguish them from terms you define. Unless terms appear in brackets, enter them in the order and with the spelling shown. However, because these terms are not case-sensitive, you can enter them in lowercase. |
SELECT last_name, employee_id FROM employees; SELECT * FROM USER_TABLES; DROP TABLE hr.employees; |
lowercase |
Lowercase typeface indicates programmatic elements that you supply. For example, lowercase indicates names of tables, columns, or files.
Note: Some programmatic elements use a mixture of UPPERCASE and lowercase. Enter these elements as shown. |
SELECT last_name, employee_id FROM employees; sqlplus hr/hr CREATE USER mjones IDENTIFIED BY ty3MU9; |