Bug 136815 Provide convenience methods to access ODA data provider info
Provide additional convenience (short-cut) methods to access ODA data provider info. This helps to make it easier for an ODA consumer application to access related info through encapsulated methods.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/odaconsumer/Driver.java
{
	    final String methodName = "getTypeMapping";
		DataSetType dsType = null;
		
		try
		{
			dsType = getDriverExtensionConfig().getDataSetType( dataSetType );
		}
		catch( OdaException ex )
		{
			sm_logger.logp( Level.SEVERE, sm_className, methodName,
					"Cannot find data set element.", ex );
			throw new DataException( ResourceConstants.INVALID_DATA_SET_TYPE, ex );
		}
		DataTypeMapping mapping = dsType.getDataTypeMapping( nativeType );
		
		
		if( mapping == null )	
			return Types.NULL;
		
		int odaTypeCode = mapping.getOdaScalarDataTypeCode();
        if( odaTypeCode == Types.NULL )
        {
			 
			
			sm_logger.logp( Level.WARNING, sm_className, methodName,
					"Invalid ODA data type {0} specified in data source extension mapping.", 
                    mapping.getOdaScalarDataType() );
		}
        return odaTypeCode;