Skip to main content



      Home
Home » Archived » BIRT » ODA Schema questions about dataTypeMapping
ODA Schema questions about dataTypeMapping [message #30526] Fri, 22 April 2005 15:10 Go to next message
Eclipse UserFriend
I'm writing my own ODA using the BIRT ODA plugin extension point.

I looked at the ODA.flatfile and that explains alot however I'm
not sure I understand what should be in my dataTypeMapping entries

so say I have an XML file like
(this xml may be malformed, just made it up)

.....
<Books>
<Book name="happiness and grins" pages="200">
<SubInfo id="1">
<Info data="aaa"/>
<Info data="bbb"/>
<Info data="ccc"/>
</SubInfo>
</Book>
<Book name="smiles and more" pages="55">
<SubInfo id="1">
<Info data="ppp"/>
<Info data="qqq"/>
<Info data="rrr"/>
</SubInfo>

</Book>
<Book name="good laughter" pages="555">
<SubInfo id="1">
<Info data="zzz"/>
</SubInfo>
</Book>
</Books>


What should my dataTypeMappings look like?
Re: ODA Schema questions about dataTypeMapping [message #30984 is a reply to message #30526] Mon, 25 April 2005 21:38 Go to previous message
Eclipse UserFriend
Hi Mike,

The dataTypeMapping of the odaDriverRuntime extension point is for a
custom ODA runtime driver to define the supported mapping of its
driver-specific data types to one or more ODA data types. That is, a
custom ODA driver may implement ODA interface methods such as
IResultSetMetaData.getColumnType to return the "native" data type code
values of its underlying data source.
And based on your plugin dataTypeMapping definition in the plugin.xml,
the ODA consumer would then know which ODA data type(s) can be used to
convert the returned value, and calls the corresponding get<Type>
methods.

For more info, please use the Eclipse PDF Tools to see the reference
document of the extension point schema
(org.eclipse.birt.data.oda/schema/odaDriverRuntime.exsd ).

Linda


Mike Boyersmith wrote:

> I'm writing my own ODA using the BIRT ODA plugin extension point.
>
> I looked at the ODA.flatfile and that explains alot however I'm
> not sure I understand what should be in my dataTypeMapping entries
>
> so say I have an XML file like
> (this xml may be malformed, just made it up)
>
> ....
> <Books>
> <Book name="happiness and grins" pages="200">
> <SubInfo id="1">
> <Info data="aaa"/>
> <Info data="bbb"/>
> <Info data="ccc"/>
> </SubInfo>
> </Book>
> <Book name="smiles and more" pages="55">
> <SubInfo id="1">
> <Info data="ppp"/>
> <Info data="qqq"/>
> <Info data="rrr"/>
> </SubInfo>
>
> </Book>
> <Book name="good laughter" pages="555">
> <SubInfo id="1">
> <Info data="zzz"/>
> </SubInfo>
> </Book>
> </Books>
>
> What should my dataTypeMappings look like?
Previous Topic:Logging and the LogManager
Next Topic:Problem with fresh install
Goto Forum:
  


Current Time: Wed May 14 10:07:15 EDT 2025

Powered by FUDForum. Page generated in 0.04682 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top