detectOmissions Feature Oracle Database Adapter Features

Oracle JCA Adapter for Database 9-41

9.3.11 OutputCompletedXml Feature

OutputCompletedXml is a feature of the outbound insert activity. The following are some of the features of the OutputCompletedXml feature: Available Since Release 10.1.2.0.2 Configurable OutputCompletedXml appears in the JCA file only when default is true. Default Value It is true when TopLink sequencing is configured to assign primary keys on insert from a database sequence, otherwise it is false. Issue You can have primary keys auto-assigned on insert from a database sequence. However, the usefulness of this feature is diminished, because insertmerge have no output message, so there is no way to tell which primary keys were assigned. Performance An output XML is provided only when the output XML would be significantly different, so if TopLink sequencing is not used, then this feature is disabled and there is no performance hit. Further, this feature can be explicitly disabled. Likewise, the original input XML is updated and returned; a completely new XML is not built. Also only a shallow update of the XML is performed; if primary keys were assigned to detail records, then these are not reflected in the output XML. Incompatible Interactions DirectSQL=true and OutputCompletedXml - OutputCompletedXml takes precedence.

9.3.12 QueryTimeout for Inbound and Outbound Transactions

You can configure QueryTimeout from the Adapter Configuration Wizard- Advanced Options page. This feature exposes the java.sql.Statement level property of the same name. Essentially, QueryTimeout allows you to configure a time-out on the call.

9.3.13 Doing Synchronous Post to BPEL Allow In-Order Delivery

In this feature, the entire invocation is in a single thread and global transaction. By default, initiation is asynchronous and the BPEL process is invoked in a separate global transaction. With Oracle Mediator, it is generally a synchronous invoke so this is only specific to an Oracle BPEL process. To enable this feature, click the Do Synchronous Post to BPEL Allow In-Order Delivery option in the Adapter Configuration Wizard - Operation page. Note: After configuring sequencing link, run the Adapter Configuration Wizard again so that the insertmerge WSDL operations can be regenerated with an output message, and WSDL property OutputCompletedXml=true. 9-42 Oracle Fusion Middleware Users Guide for Technology Adapters

9.4 Oracle Database Adapter Concepts

This section includes the following topics: ■ Section 9.4.1, Relational-to-XML Mapping ■ Section 9.4.2, SQL Operations as Web Services

9.4.1 Relational-to-XML Mapping

This section includes the following topics: ■ Section 9.4.1.1, Relational Types to XML Schema Types ■ Section 9.4.1.2, Mapping Any Relational Schema to Any XML Schema ■ Section 9.4.1.3, Querying over Multiple Tables For a flat table or schema, the relational-to-XML mapping is easy to see. Each row in the table becomes a complex XML element. The value for each column becomes a text node in the XML element. Both column values and text elements are primitive types. Table 9–3 shows the structure of the MOVIES table. This table is used in the use cases described in this chapter. See Oracle Database Adapter Use Cases for more information. The corresponding XML schema definition XSD is as follows: ?xml version = 1.0 encoding = UTF-8? xs:schema targetNamespace=http:xmlns.oracle.compcbpeladapterdbtopReadS1 xmlns=http:xmlns.oracle.compcbpeladapterdbtopReadS1 elementFormDefault=qualified attributeFormDefault=qualified xmlns:xs=http:www.w3.org2001XMLSchema xs:element name=MoviesCollection type=MoviesCollection xs:complexType name=MoviesCollection Table 9–3 MOVIES Table Description Name Null? Type TITLE NOT NULL VARCHAR250 DIRECTOR -- VARCHAR220 STARRING -- VARCHAR2100 SYNOPSIS -- VARCHAR2255 GENRE -- VARCHAR270 RUN_TIME -- NUMBER RELEASE_DATE -- DATE RATED -- VARCHAR26 RATING -- VARCHAR24 VIEWER_RATING -- VARCHAR25 STATUS -- VARCHAR211 TOTAL_GROSS -- NUMBER DELETED -- VARCHAR25 SEQUENCENO -- NUMBER LAST_UPDATED -- DATE Oracle JCA Adapter for Database 9-43 xs:sequence xs:element name=Movies type=Movies minOccurs=0 maxOccurs=unbounded xs:sequence xs:complexType xs:complexType name=Movies xs:sequence xs:element name=title xs:simpleType xs:restriction base=xs:string xs:maxLength value=50 xs:restriction xs:simpleType xs:element xs:element name=director minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=20 xs:restriction xs:simpleType xs:element xs:element name=starring minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=100 xs:restriction xs:simpleType xs:element xs:element name=synopsis minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=255 xs:restriction xs:simpleType xs:element xs:element name=genre minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=70 xs:restriction xs:simpleType xs:element xs:element name=runTime type=xs:decimal minOccurs=0 nillable=true xs:element name=releaseDate type=xs:dateTime minOccurs=0 nillable=true xs:element name=rated minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=6 xs:restriction xs:simpleType xs:element xs:element name=rating minOccurs=0 nillable=true xs:simpleType xs:restriction base=xs:string xs:maxLength value=4 xs:restriction xs:simpleType xs:element