Skip Headers

Oracle9i XML API Reference - XDK and Oracle XML DB
Release 2 (9.2)

Part Number A96616-01
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to next page

22
Oracle XML DB API for Java Beans

The Oracle XML DB Java Beans API implements the mapping relationship for Java Beans classes to Java, XML Schema, and SQL entities and data types.

This chapter contains these tables:


Mapping for XML Schema to Java Beans Classes and Methods

Table 22-1 lists mapping of XML Schema entities to the Java Beans classes and their methods.

Table 22-1 Mapping of XML Schema entities to Java Beans classes and methods
XML Schema Entity Java Beans Classes/Methods Description

Attribute

Get/setAttribute{attrname}

Get/set attribute for document child element and its specified attribute.

Complextype

Get/set{complextype classname}.

For complex children, separate bean classes get generated. Extras (processing instructions or comments). DOM classes for processing instructions and comments are returned.

Scalar data

Get/set{scalar type name}

Children with maxoccurs > 1 Get/set List of type of child.


Mapping for Java Beans API to XML Schema, SQL, and Java Beans Data Types

Table 22-2 lists mapping used by the Java Beans API between XML Schema, SQL, and Java data types.

Table 22-2 Mapping From XML Schema, SQL, and Java Data Types  
XML Schema Data Type SQL DataType Java Beans Data Type

Boolean

boolean

boolean

String

URI reference

ID

IDREF

ENTITY

NOTATION

Language

NCName

Name

java.lang.String

String

DECIMAL

INTEGER

LONG

SHORT

INT

POSITIVEINTEGER

NONPOSITIVEINTEGER

oracle.sql.Number

int

FLOAT

DOUBLE

oracle.sql.Number

float

TIMEDURATION

TIMEPERIOD

RECURRINGDURATION

DATE

TIME

MONTH,YEAR

RECURRINGDATE

java.sql.Timestamp

Time

REF

oracle.sql.Ref

Ref

BINARY

oracle.sql.RAW

Byte[]

QNAME

java.lang.String

String


Go to previous page Go to next page
Oracle
Copyright © 2001, 2002 Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback