<PlatformSpecifc> Element

Allows mappings specific to a particular database platform to be processed.

The element can be defined on the root level:

<?xml version="1.0" ?>

<Mapping xmlns="urn:TechTalk:TT.OODAL.XmlMapping">

<PlatformSpecificplatformCode="database-platform-code1

                             ([|database-platform-codeN])*">

       <Type name="type_1">

              Platform specificmappings of "type_1"

       </Type>

       ...

       <Type name="type_n">

              Platform specificmappings of "type_n"

       </Type>

</PlatformSpecific>

       Other platform neutral mappings

</Mapping>

Or within a type mapping:

<Type name="type">

       <PlatformSpecificplatformCode="database-platform-code1

                                    ([|database-platform-codeN])*">

       Platform specificmappings of "type"

       </PlatformSpecific>

       Platform neutral mappings of "type"

</Type>

type: A type name.

database-platform-code1..N: The database-platform names the mapping applies to.

Remarks

·    The pipe separator ("|") can be used to specify multiple platforms the mapping applies to (OR).

·    Platform codes are represented in a canonical form. A less specific code includes all the more specific platforms under it. The following platform codes are supported:

o    MsSql

§  MsSql.2000

§  MsSql.2005

o    MsSqlCe

o    Oracle

§  Oracle.9i

§  Oracle.10g

o    DB2

·    Note that MsSqlCe is not a specialisation of the MsSql platform.

·    Platform codes are case sensitive.

Example

The following mapping is valid for all MsSql database platforms (MsSql.2000, MsSql.2005)

<PlatformSpecific platformCode=”MsSql”>

       <Member name=”ExtraField”><PersistentField /></Member>

</PlatformSpecific>

The following mapping is valid for all MsSql and Oracle 9i database platforms

<PlatformSpecific platformCode=”MsSql|Oracle.9i”>

       <Member name=”ExtraField”><PersistentField /></Member>

</PlatformSpecific>

Requirements

Editions:Professional, Evaluation, Express

Database Platforms:Microsoft SQL Server 2000, Microsoft SQL Server 2005, Oracle 9i Release 2, Oracle 10g Release 2, IBM DB2