| <?xml version='1.0' encoding='UTF-8'?>
|
| <!-- Schema file written by PDE -->
|
| <schema targetNamespace="org.eclipse.datatools.connectivity.oda">
|
| <annotation>
|
| <appInfo>
|
| <meta.schema plugin="org.eclipse.datatools.connectivity.oda" id="dataSource" name="Open Data Access Extension"/>
|
| </appInfo>
|
| <documentation>
|
| This extension point is used to support the extension of design-time and run-time data source access by a data application. Each extension must implement the Open Data Access (ODA) Java runtime interfaces defined in the <i>org.eclipse.datatools.connectivity.oda</i> package.
|
| </documentation>
|
| </annotation>
|
|
|
| <element name="extension">
|
| <complexType>
|
| <sequence>
|
| <element ref="dataSource"/>
|
| <element ref="dataSet" minOccurs="1" maxOccurs="unbounded"/>
|
| </sequence>
|
| <attribute name="point" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
|
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="id" type="string">
|
| <annotation>
|
| <documentation>
|
|
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="name" type="string">
|
| <annotation>
|
| <documentation>
|
|
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="dataSource">
|
| <annotation>
|
| <documentation>
|
| The definition of a type of ODA data source extension for use at design-time and run-time.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="traceLogging" minOccurs="0" maxOccurs="1"/>
|
| <element ref="properties" minOccurs="0" maxOccurs="1"/>
|
| </sequence>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| A fully qualified ID that uniquely identifies this ODA data source extension within an ODA consumer application's environment. If a data source designer extension (TBD) for this ODA driver is available, the value of this attribute must match that of the designer extension's <i>id</i> attribute in its data source element.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="odaVersion" type="string" use="default" value="3.0">
|
| <annotation>
|
| <documentation>
|
| Version of the ODA interfaces for which this driver is developed. This element is required and should take the format of Major.Minor or Major.Minor.Service (e.g. 3.0 or 2.0.1).
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultDisplayName" type="string">
|
| <annotation>
|
| <documentation>
|
| The display name of the ODA data source extension. Its value can be localized by using the plugin.properties mechanism. Default to the extension id if no display name is specified. |
| It can be used by an ODA consumer application's designer tool in displaying a list of ODA data source extensions, when they do not have a corresponding data source editor (data source UI extension point).
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="driverClass" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Concrete class that implements the <i>org.eclipse.datatools.connectivity.oda.IDriver</i> interface. This is the entry point of the ODA runtime driver. The same driver may support multiple data source extensions.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="java" basedOn="org.eclipse.datatools.connectivity.oda.IDriver"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| <attribute name="setThreadContextClassLoader" type="boolean" use="default" value="false">
|
| <annotation>
|
| <documentation>
|
| If true, the consumer of the ODA runtime extension plug-in should set the thread context class loader to the one used to load this driver before calling any ODA interface method. |
| Any data source plug-in extension with this flag set to true would take precedence, and is applied to all data source extensions implemented by this plug-in. |
| <br> |
| If the thread context class loader being set is the OSGi class loader that was used to load this ODA runtime plugin, it is not designed to be used by a plugin to in turn load additional classes. If further class loading is needed, it is up to individual ODA runtime plugin implementation to provide its own URLClassLoader, and switch thread context class loader as appropriate.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="dataSet">
|
| <annotation>
|
| <documentation>
|
| The definition of a type of data set supported by the dataSource extension.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="dataTypeMapping" minOccurs="1" maxOccurs="unbounded"/>
|
| <element ref="properties" minOccurs="0" maxOccurs="1"/>
|
| </sequence>
|
| <attribute name="id" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| A fully qualified ID that uniquely identifies this ODA data set definition within an ODA consumer application's environment.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultDisplayName" type="string">
|
| <annotation>
|
| <documentation>
|
| The display name of the ODA data set definition. Its value can be localized by using the plugin.properties mechanism. Default to its id if no display name is specified.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="dataTypeMapping">
|
| <annotation>
|
| <documentation>
|
| A data types mapping from a data provider's native data type to one or more ODA data types. |
| Each native data type must be mapped to a primary ODA scalar data type. The driver can optionally provide a list of alternate ODA data types to which it is capable of converting a native data type. |
| This data type mapping facilitates all ODA consumers to map from the same set of ODA data types to its own application-specific data types.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="alternativeOdaDataType" minOccurs="0" maxOccurs="unbounded"/>
|
| </sequence>
|
| <attribute name="nativeDataType" type="string">
|
| <annotation>
|
| <documentation>
|
| Native data type name (a string). Used for information only.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="nativeDataTypeCode" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Native data type code (an integer). Its value must match one of the data type codes returned in the driver's ODA interface implementation.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="odaScalarDataType" use="default" value="String">
|
| <annotation>
|
| <documentation>
|
| The primary ODA scalar data type which the native type maps to. Supported ODA data types are: Date, Double, Integer, String, Time, Timestamp, Decimal, Blob and Clob.
|
| </documentation>
|
| </annotation>
|
| <simpleType>
|
| <restriction base="string">
|
| <enumeration value="Date">
|
| </enumeration>
|
| <enumeration value="Double">
|
| </enumeration>
|
| <enumeration value="Integer">
|
| </enumeration>
|
| <enumeration value="String">
|
| </enumeration>
|
| <enumeration value="Time">
|
| </enumeration>
|
| <enumeration value="Timestamp">
|
| </enumeration>
|
| <enumeration value="Decimal">
|
| </enumeration>
|
| <enumeration value="Blob">
|
| </enumeration>
|
| <enumeration value="Clob">
|
| </enumeration>
|
| </restriction>
|
| </simpleType>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="alternativeOdaDataType">
|
| <annotation>
|
| <documentation>
|
| Provide an alternative mapping to an ODA scalar data type.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="odaScalarDataType" use="required">
|
| <annotation>
|
| <documentation>
|
| The ODA scalar data type to which the native type may be converted by the driver.
|
| </documentation>
|
| </annotation>
|
| <simpleType>
|
| <restriction base="string">
|
| <enumeration value="Date">
|
| </enumeration>
|
| <enumeration value="Double">
|
| </enumeration>
|
| <enumeration value="Integer">
|
| </enumeration>
|
| <enumeration value="String">
|
| </enumeration>
|
| <enumeration value="Time">
|
| </enumeration>
|
| <enumeration value="Timestamp">
|
| </enumeration>
|
| <enumeration value="Decimal">
|
| </enumeration>
|
| <enumeration value="Blob">
|
| </enumeration>
|
| <enumeration value="Clob">
|
| </enumeration>
|
| </restriction>
|
| </simpleType>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="traceLogging">
|
| <annotation>
|
| <documentation>
|
| Configures the ODA run-time driver's trace logging settings for the data source extension. |
| The configured values are passed through to the driver's implementation of the <code>IDriver.setLogConfiguration</code> method. |
| <br>It is up to individual ODA driver on how to honor any of these trace logging attributes as appropriate. |
| |
| <br><br>Note: The trace logging configuration specified in the plug-in PDE .options file would take precedence over those configured in this element, if the debug tracing flag is set to "true". |
| <br>The ODA plug-in's PDE tracing options, listed below for cross reference, match the attributes of this element. |
| <br>&nbsp;&nbsp;&nbsp; |
| &lt;plug-in Id&gt;/debug = true/false |
| <br>&nbsp;&nbsp;&nbsp; |
| &lt;plug-in Id&gt;/traceLogging/logLevel |
| <br>&nbsp;&nbsp;&nbsp; |
| &lt;plug-in Id&gt;/traceLogging/logFileNamePrefix |
| <br>&nbsp;&nbsp;&nbsp; |
| &lt;plug-in Id&gt;/traceLogging/logDirectory |
| <br>&nbsp;&nbsp;&nbsp; |
| &lt;plug-in Id&gt;/traceLogging/logFormatterClass
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="logLevel" type="string" use="default" value="WARNING">
|
| <annotation>
|
| <documentation>
|
| The name or numeric value for the driver's log level. |
| <br>The log levels' names and corresponding numeric values are: |
| <br> |
| "SEVERE" = 1000; |
| "WARNING" = 900; |
| "INFO" = 800; |
| "CONFIG" = 700; |
| "FINE" = 500; |
| "FINER" = 400; |
| "FINEST" = 300; |
| "ALL" = 0; |
| "OFF" = 1001 or higher .
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="logFileNamePrefix" type="string">
|
| <annotation>
|
| <documentation>
|
| A string prefix for driver's log file name.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="logDirectory" type="string">
|
| <annotation>
|
| <documentation>
|
| Directory for log file.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="logFormatterClass" type="string">
|
| <annotation>
|
| <documentation>
|
| The class name of a concrete log formatter, suitable for use by the driver-specific logging utility.
|
| </documentation>
|
| <appInfo>
|
| <meta.attribute kind="java"/>
|
| </appInfo>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="property">
|
| <annotation>
|
| <documentation>
|
| A property whose value can be edited at design-time using an ODA consumer application's designer tool. Its value is then passed to the ODA runtime driver during run-time.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="choice" minOccurs="0" maxOccurs="unbounded"/>
|
| </sequence>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Unique name of the property.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultDisplayName" type="string">
|
| <annotation>
|
| <documentation>
|
| The default display name. Its value can be localized by using the plugin.properties mechanism.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="type" use="default" value="string">
|
| <annotation>
|
| <documentation>
|
| Type of the property. The property type could be one of the values listed in the Restriction enumerations.
|
| </documentation>
|
| </annotation>
|
| <simpleType>
|
| <restriction base="string">
|
| <enumeration value="string">
|
| </enumeration>
|
| <enumeration value="choice">
|
| </enumeration>
|
| </restriction>
|
| </simpleType>
|
| </attribute>
|
| <attribute name="canInherit" type="boolean" use="default" value="true">
|
| <annotation>
|
| <documentation>
|
| Reserved.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultValue" type="string">
|
| <annotation>
|
| <documentation>
|
| Default value of the property, if no property value is set.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="isEncryptable" type="boolean" use="default" value="false">
|
| <annotation>
|
| <documentation>
|
| A flag indicating whether this property value is encryptable. Setting it to "true" indicates to an ODA consumer application that this property's value should be encrypted.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="propertyGroup">
|
| <annotation>
|
| <documentation>
|
| A grouping of one or more properties in an ODA consumer application's designer tool. The group attributes are for display only. All properties listed under a propertyGroup are handled as scalar properties at run-time.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="property" minOccurs="1" maxOccurs="unbounded"/>
|
| </sequence>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
|
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultDisplayName" type="string">
|
| <annotation>
|
| <documentation>
|
| The default display name. Its value can be localized by using the plugin.properties mechanism.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="propertyVisibility">
|
| <annotation>
|
| <documentation>
|
| Used to set the visibility level of the named property when it is shown in the property sheet of an ODA consumer application's designer tool.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| The name of a property that is defined either by this data source extension or is a system-defined property.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="visibility">
|
| <annotation>
|
| <documentation>
|
| The valid options are: change, hide, lock.
|
| </documentation>
|
| </annotation>
|
| <simpleType>
|
| <restriction base="string">
|
| <enumeration value="change">
|
| </enumeration>
|
| <enumeration value="lock">
|
| </enumeration>
|
| <enumeration value="hide">
|
| </enumeration>
|
| </restriction>
|
| </simpleType>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="choice">
|
| <annotation>
|
| <documentation>
|
| Choice of property values.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <attribute name="name" type="string" use="required">
|
| <annotation>
|
| <documentation>
|
| Name of the choice
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="value" type="string">
|
| <annotation>
|
| <documentation>
|
| Value to be used, if the given choice is selected.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| <attribute name="defaultDisplayName" type="string">
|
| <annotation>
|
| <documentation>
|
| The default display name. Its value can be localized by using the plugin.properties mechanism.
|
| </documentation>
|
| </annotation>
|
| </attribute>
|
| </complexType>
|
| </element>
|
|
|
| <element name="properties">
|
| <annotation>
|
| <documentation>
|
| A collection of property definitions in a data source extension or its supported data set definitions.
|
| </documentation>
|
| </annotation>
|
| <complexType>
|
| <sequence>
|
| <element ref="property" minOccurs="0" maxOccurs="unbounded"/>
|
| <element ref="propertyGroup" minOccurs="0" maxOccurs="unbounded"/>
|
| <element ref="propertyVisibility" minOccurs="0" maxOccurs="unbounded"/>
|
| </sequence>
|
| </complexType>
|
| </element>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="since"/>
|
| </appInfo>
|
| <documentation>
|
| 3.0
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="examples"/>
|
| </appInfo>
|
| <documentation>
|
| <p> |
| <pre> |
| <extension |
| id="Id" |
| name="Name" |
| point="org.eclipse.datatools.connectivity.oda.dataSource"> |
| <dataSource |
| odaVersion="2.0" |
| driverClass="org.eclipse.birt.report.data.oda.jdbc.OdaJdbcDriver" |
| id="org.eclipse.birt.report.data.oda.jdbc"> |
| |
| <properties> |
| <propertyGroup |
| defaultDisplayName="Connection Properties" |
| name="connectionProperties"> |
| <property |
| type="string" |
| defaultDisplayName="JDBC Driver Class" |
| canInherit="true" |
| name="odaDriverClass"/> |
| <property |
| type="string" |
| defaultDisplayName="JDBC Driver URL" |
| canInherit="true" |
| name="odaURL"/> |
| <property |
| type="string" |
| defaultDisplayName="Data Source" |
| canInherit="true" |
| name="odaDataSource"/> |
| <property |
| type="string" |
| defaultDisplayName="User Name" |
| canInherit="true" |
| name="odaUser"/> |
| <property |
| type="string" |
| defaultDisplayName="Password" |
| canInherit="true" |
| name="odaPassword"/> |
| </propertyGroup> |
| </properties> |
| </dataSource> |
| <dataSet |
| defaultDisplayName="JdbcSelectDataSet&quot;" |
| id="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet"> |
| <dataTypeMapping |
| nativeDataType="BIT" |
| nativeDataTypeCode="-7" |
| odaScalarDataType="Integer"/> |
| <dataTypeMapping |
| nativeDataType="TINYINT" |
| nativeDataTypeCode="-6" |
| odaScalarDataType="Integer"/> |
| <dataTypeMapping |
| nativeDataType="SMALLINT" |
| nativeDataTypeCode="5" |
| odaScalarDataType="Integer"/> |
| <dataTypeMapping |
| nativeDataType="INTEGER" |
| nativeDataTypeCode="4" |
| odaScalarDataType="Integer"/> |
| <dataTypeMapping |
| nativeDataType="BIGINT" |
| nativeDataTypeCode="-5" |
| odaScalarDataType="Decimal"/> |
| <dataTypeMapping |
| nativeDataType="FLOAT" |
| nativeDataTypeCode="6" |
| odaScalarDataType="Double"/> |
| <dataTypeMapping |
| nativeDataType="REAL" |
| nativeDataTypeCode="7" |
| odaScalarDataType="Double"/> |
| <dataTypeMapping |
| nativeDataType="DOUBLE" |
| nativeDataTypeCode="8" |
| odaScalarDataType="Double"/> |
| <dataTypeMapping |
| nativeDataType="NUMERIC" |
| nativeDataTypeCode="2" |
| odaScalarDataType="Decimal"/> |
| <dataTypeMapping |
| nativeDataType="DECIMAL" |
| nativeDataTypeCode="3" |
| odaScalarDataType="Decimal"/> |
| <dataTypeMapping |
| nativeDataType="CHAR" |
| nativeDataTypeCode="1" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="VARCHAR" |
| nativeDataTypeCode="12" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="LONGVARCHAR" |
| nativeDataTypeCode="-1" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="DATE" |
| nativeDataTypeCode="91" |
| odaScalarDataType="Date"/> |
| <dataTypeMapping |
| nativeDataType="TIME" |
| nativeDataTypeCode="92" |
| odaScalarDataType="Time"/> |
| <dataTypeMapping |
| nativeDataType="TIMESTAMP" |
| nativeDataTypeCode="93" |
| odaScalarDataType="Timestamp"/> |
| <dataTypeMapping |
| nativeDataType="BINARY" |
| nativeDataTypeCode="-2" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="VARBINARY" |
| nativeDataTypeCode="-3" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="LONGVARBINARY" |
| nativeDataTypeCode="-4" |
| odaScalarDataType="String"/> |
| <dataTypeMapping |
| nativeDataType="BOOLEAN" |
| nativeDataTypeCode="16" |
| odaScalarDataType="Integer"/> |
| </dataSet> |
| |
| </extension> |
| |
| </pre> |
| </p>
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="apiInfo"/>
|
| </appInfo>
|
| <documentation>
|
| The data source extension's driver must implement the interfaces defined in the <i>org.eclipse.datatools.connectivity.oda</i> package. See the package's JavaDoc documentation and API interfaces for more information.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="implementation"/>
|
| </appInfo>
|
| <documentation>
|
| The plugin <i>org.eclipse.birt.report.data.oda.jdbc</i>, supplied with the Eclipse BIRT installation, provides a good example for implementing an ODA runtime extension. |
| <br> |
| In addition, a set of default implementation of the main ODA runtime interfaces are provided in the |
| <i>org.eclipse.datatools.connectivity.oda.impl</i> package. |
| These classes assume the behavior of a simple ODA driver, |
| and have labelled TODO tasks for a driver developer to implement data source dependent behavior. |
| These concrete classes are provided for use as templates or base classes to aid in the development of an ODA custom driver. Their use is purely optional.
|
| </documentation>
|
| </annotation>
|
|
|
| <annotation>
|
| <appInfo>
|
| <meta.section type="copyright"/>
|
| </appInfo>
|
| <documentation>
|
| Copyright (c) 2004-2005 Actuate Corporation. |
| All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
|
| </documentation>
|
| </annotation>
|
|
|
| </schema>
|