Both Invokes in Same Global Transaction

9-30 Oracle Fusion Middleware Users Guide for Technology Adapters

9.3.2 Pure SQL - XML Type Support

Pure SQL Adapter is an option in the Oracle Database Adapter Wizard that allows you to type the SQL string directly and have an XSDWeb service generated automatically. The database tables are introspected dynamically in the Adapter Configuration Wizard to test the SQL and populate the XSD file better that is, with valid return types. The Pure SQL support allows the Oracle Database Adapter to deal with tablesviews as entities and for dealing directly with SQL. You can use Pure SQL: ■ for simple data projection style report queries ■ in cases where the result set is not table oriented, such as select count ■ to perform an update or delete all ■ when working with XMLType columns and xquery ■ when using complex SQL, which are not modeled in the Adapter Configuration Wizard expression builder You can use the Pure SQL Adapter with Oracle XMLTypes. It is a natural fit for inserting XML into XMLType tables and columns, and retrieving XML using xquery selects. Pure SQL is a natural fit for the Oracle Database Adapter that provides a relational-xml mapping that parallels XML DBXDB support. So, when using XDB the adapter should be as lightweight and transparent as possible, to let you focus on XDB and XQuery. If your data is in XML unstructuredsemi-structured format, and you have no relational schema at all that you can map your data to, then you could use XDB. The conventional Oracle Database Adapter allows you to import an existing relational schema as an XML schema to be used with Web services. XDBs XML shredding algorithm can generate a relational schema from an existing XML schema for persistent storage. For more information, see: ■ Section 9.2.4, Selecting the Operation Type ■ Use Cases for Pure SQL on page 9-53

9.3.3 Row Set Support Using a Strongly or Weakly Typed XSD

Currently a REF CURSOR by nature can support any arbitrary result set, so the XSD generated at design time allows this and looks like the XSD that Example 9–1 shows. Example 9–1 Weakly Typed XSD refCursorOutputParam Note: Use of schema bound XMLTypes requires the oci driver, which is not certified in the 11g release. Therefore, you must use non-schema bound XMLTypes at run time, though you can use schema bound XMLTypes at design time to import a representative XSD. Note: Oracle Database stored procedures return result sets that are referred to as RefCursors, whereas, in the case of third-party databases result sets that are returned are referred to as RowSets.