<?xml version='1.0' encoding='UTF-8'?> | |
<!-- Schema file written by PDE --> | |
<schema targetNamespace="org.eclipse.datatools.connectivity.oda" xmlns="http://www.w3.org/2001/XMLSchema"> | |
<annotation> | |
<appinfo> | |
<meta.schema plugin="org.eclipse.datatools.connectivity.oda" id="dataSource" name="Open Data Access"/> | |
</appinfo> | |
<documentation> | |
[API] 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"/> | |
<element ref="relationship" minOccurs="0" maxOccurs="unbounded"/> | |
</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 (that implements <i>org.eclipse.datatools.connectivity.oda.design.ui.dataSource</i> extension point) is available for this ODA driver, 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"/> | |
<element ref="relationship" 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, Clob and Boolean. | |
</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> | |
<enumeration value="Boolean"> | |
</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> | |
<enumeration value="Boolean"> | |
</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> | |
<attribute name="allowsEmptyValueAsNull" type="boolean" use="default" value="true"> | |
<annotation> | |
<documentation> | |
A flag that indicates whether an empty value of this property can be treated as a null value. Default value is true. This attribute setting applies when an ODA consumer passes the property's value to this ODA runtime driver. This optional attribute may be used to accommodate the case where a property value's input control does not provide the means to specify a null value. | |
</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> | |
<element name="relationship"> | |
<annotation> | |
<documentation> | |
An optional element to specify the relationship(s) of this element. | |
</documentation> | |
</annotation> | |
<complexType> | |
<attribute name="type" use="required"> | |
<annotation> | |
<documentation> | |
The type of relationship that this extension's dataSource or dataSet element has with the <i>relatedId</i> element. | |
Valid value(s) are: | |
<br>* <i>replacedBy</i>: specifies that this dataSource/dataSet is deprecated and replaced by that of <i>relatedId</i>. It is up to an ODA host to apply as appropriate, e.g. to migrate its reference of a deprecated extension, and to control which ODA extension to use at runtime. A deprecated data source type is hidden by default from the list of data sources presented in the ODA design UI framework, such as for creating a new connection profile instance. | |
<br>* <i>wrapperOf</i>: specifies that this dataSource/dataSet is a wrapper of the <i>relatedId</i> identifier. A wrapper data source type is hidden by default from the list of available data sources presented in the ODA design UI framework. Since: 3.1.2. | |
</documentation> | |
</annotation> | |
<simpleType> | |
<restriction base="string"> | |
<enumeration value="replacedBy"> | |
</enumeration> | |
<enumeration value="wrapperOf"> | |
</enumeration> | |
</restriction> | |
</simpleType> | |
</attribute> | |
<attribute name="relatedId" type="string" use="required"> | |
<annotation> | |
<documentation> | |
The fully qualified ID of the related ODA data source or data set element. | |
Its value for a <i>replacedBy</i> type must match that of the corresponding <i>dataSource.id</i> or <i>dataSet.id</i> attribute defined in another ODA driver's <i>org.eclipse.datatools.connectivity.oda.dataSource</i> extension. | |
</documentation> | |
</annotation> | |
</attribute> | |
</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 | |
point="org.eclipse.datatools.connectivity.oda.dataSource"> | |
<dataSource | |
odaVersion="3.1" | |
driverClass="org.eclipse.datatools.connectivity.oda.flatfile.FlatFileDriver" | |
defaultDisplayName="Flat File Data Source" | |
id="org.eclipse.datatools.connectivity.oda.flatfile" | |
setThreadContextClassLoader="false"> | |
<properties> | |
<propertyGroup | |
defaultDisplayName="Connection Properties" | |
name="connectionProperties"> | |
<property | |
type="string" | |
defaultDisplayName="Home Folder" | |
canInherit="true" | |
name="HOME"/> | |
<property | |
type="string" | |
defaultDisplayName="Character Set" | |
canInherit="true" | |
name="CHARSET"/> | |
<property | |
type="string" | |
canInherit="true" | |
defaultDisplayName="Includes Data Type (Yes/No)" | |
name="INCLTYPELINE"/> | |
</propertyGroup> | |
</properties> | |
</dataSource> | |
<dataSet | |
defaultDisplayName="Flat File Data Set" | |
id="org.eclipse.datatools.connectivity.oda.flatfile.dataSet"> | |
<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="Boolean"/> | |
<dataTypeMapping | |
nativeDataType="BLOB" | |
nativeDataTypeCode="2004" | |
odaScalarDataType="String"/> | |
<dataTypeMapping | |
nativeDataType="CLOB" | |
nativeDataTypeCode="2005" | |
odaScalarDataType="String"/> | |
</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 ODA framework provides an ODA Plug-in Project Template Wizard to automatically generate a custom ODA plug-in project with a set of default implementation of the main ODA interfaces. The wizard is available in the New->Project... dialog; one for ODA Runtime Driver, another for ODA Designer. | |
<br> | |
Their generated implementation classes assume the behavior of a simple ODA driver and designer UI. They contain TODO task tags for an ODA driver developer to implement data source specific behavior. | |
These concrete classes are provided to aid in the development of a custom ODA data source. Their use is purely optional. | |
</documentation> | |
</annotation> | |
<annotation> | |
<appinfo> | |
<meta.section type="copyright"/> | |
</appinfo> | |
<documentation> | |
Copyright (c) 2004-2008 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> |