Introducing the Oracle Data Service Integrator XQuery Engine
XML and XQuery
XQuery Use in Oracle Data Service Integrator
Supported XQuery Specifications
Learning More About the XQuery Language
Oracle’s XQuery Implementation
Oracle XQuery Function Implementation
Function Overview
Access Control Functions
Duration, Date, and Time Functions
fn-bea:date-from-string-with-format
fn-bea:date-to-string-with-format
fn-bea:dateTime-from-string-with-format
fn-bea:dateTime-to-string-with-format
fn-bea:time-from-string-with-format
fn-bea:time-to-string-with-format
Execution Control Functions
fn-bea:timeout and fn-bea:timeout-with-label
fn-bea-timeout-with-label Signature
Numeric Functions
Other Functions
QName Functions
Sequence Functions
String Functions
Pad Left Function Using Default Character (ASCII 32)
Pad Left Function with Specified Pad String
Pad Right Function Using Default Character (ASCII 32)
Pad Right Function with Specified Pad String
Extended XQuery Data Model (XXDM) Functions
Using Mutators for Updates
Mutator Function Examples
Update Based on Simple Parameters
Update Based on Complex Input Parameters
Example—Replacing Values Based on Complex Input Parameters
Example—Inserting a New Element Based on Complex Input Parameters
Update When the Parameter Structure Matches the Return Type
Example—Replacing all Values in a Complex Element
Update Based on Differences Between Old and New Values
Example—Updating Based on Parameter Differences Determined Through a Series of if Statements
Example—Updating Based on Parameter Differences Determined Through Iteration
Example—Retrieving Additional Data Before Updating
Example—Updating Multiple Data Sources
Unsupported XQuery Functions
Restrictions Related to Client Ad-Hoc Queries
Implementation-Specific Functions and Operators
Oracle XQuery Language Implementation
XQuery Language Support (and Unsupported Features)
Extensions to the XQuery Language in the Oracle Data Service Integrator XQuery Engine
Optional Indicator in Direct Element and Attribute Constructors
Implementation-Defined Values for XQuery Language Processing
XQuery Engine and SQL
Introduction
Base and Core RDBMS Support
How the XQuery Engine Supports SQL Data Sources
Metadata and Data Type Mappings Get Stored in Annotated Files
Runtime Connection Management—Connection Sharing
XQuery-SQL Data Type Mappings
Date and Time Data Type Differences: Timezones and Time Precision
How Oracle Data Service Integrator Handles Timezone Information
How Oracle Data Service Integrator Handles Fractional Seconds
Scope Differences for Expressions and Data Types
SQL Pushdown: Performance Optimization
Function and Operator Pushdown
Parameters in Generated SQL Statements
Common Query Patterns
Semi-Joins and Anti-Semi-Joins
Grouping and Aggregation
Group-By with a Nested Where Clause Translates to SQL HAVING Clause
Outer Join with Aggregate Pattern
Direct SQL Data Services and Pushdown
Distributed Query Pushdown
Preventing SQL Pushdown
Understanding XML Namespaces
Introducing XML Namespaces
Exploring XML Schema Namespaces
Using XML Namespaces in Oracle Data Service Integrator Queries and Schemas
Best Practices Using XQuery
Introducing Data Service Design
Understanding Data Service Design Principles
Applying Data Service Implementation Guidelines
Oracle XQuery Scripting Extension (XQSE)
Introducing the XQuery Scripting Extension
Prolog and Query Body
Procedure Declaration
XQSE Function Declaration
Value Statement and Procedure Call
Block
Set Statement
While Statement
Return Statement
Iterate Statement
Try Statement
If Statement
Changed Element
XQSE Grammar Summary
XQuery-SQL Mapping Reference
IBM DB2/NT 8 (and higher)
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Microsoft SQL Server 2000 (and higher)
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Oracle 8.1.x
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Oracle 9.x, 10.x
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Sybase 12.5.2 (and higher)
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
PointBase 5.1
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Teradata V2R5 (and higher)
Data Type Mapping
Function and Operator Pushdown
Cast Operation Pushdown
Other SQL Generation Capabilities
Base (Generic) RDBMS Support
Database Capabilities Information
Data Type Mapping
Cast Operation Pushdown
Other SQL Generation Capabilities