Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 346366

Summary: Expose visibility of an overriding oda.consumer.driverBridge extension in an ODA design session
Product: [Tools] Data Tools Reporter: Linda Chan <lchan>
Component: Open Data AccessAssignee: Linda Chan <lchan>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: 1.8.2   
Target Milestone: 1.9   
Hardware: PC   
OS: All   
Whiteboard:

Description Linda Chan CLA 2011-05-19 01:05:29 EDT
The existing o.e.d.c.oda.consumer.driverBridge extension point supports an extension implementation to override an ODA data source extension (o.e.d.c.oda.datasource) at runtime.  The knowledge of a driverBridge extension has been straightly encapsulated within the runtime execution of the ODA consumer framework, and is not exposed to an ODA design session.
However, there are use cases where an ODA designer could use such info, as needed, to support its re-use by a driverBridge extension.  

This enhancement calls for providing an additional attribute in the oda.design.DataSourceDesign model for the overriding ODA data source extension id, that implements an oda.consumer.driverBridge extension.  
The value should be set at design time by an ODA host designer, which can obtain the value from the oda.consumer framework.
Comment 1 Linda Chan CLA 2011-05-19 21:02:09 EDT
Delivered enhancement.  Latest version is tagged with v201105200848.

See Javadoc comments on related new API methods in:

*  org.eclipse.datatools.connectivity.oda.consumer.helper.DriverExtensionHelper 
       public static String getEffectiveDataSourceId( String odaDataSourceId )
          throws OdaException

*  org.eclipse.datatools.connectivity.oda.design.DataSourceDesign 
       public void setOdaExtensionId( String newOdaExtensionId )
       public String getEffectiveOdaExtensionId()
Comment 2 Linda Chan CLA 2011-05-23 17:15:11 EDT
Also added corresponding support in the ODA design session utility to recognize an oda.consumer.propertyProvider extension that may be overridden by a oda.consumer.driverBridge extension.
(Tagged with v201105240457.)

* org.eclipse.datatools.connectivity.oda.design.ui.designsession.DesignSessionUtil
      public static java.util.Properties getEffectiveDataSourceProperties( 
            DataSourceDesign dataSourceDesign )
         throws OdaException