Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Resource Data Provider is the easiest Data Provider within the XML Data Control. 
It takes one parameter called 'resource' that points to an XML document.
At run time, the XML Data Control will fetch the data from the location within the resource parameter.
 

Code Block
languagexml
titleData Control
    <AdapterDataControl id="HrData" FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
                        ImplDef="org.adfemg.datacontrol.xml.DataControlDefinition" SupportsTransactions="false"
                        SupportsSortCollection="false" SupportsResetState="false" SupportsRangesize="false"
                        SupportsFindMode="false" SupportsUpdates="false" Definition="org.adfemg.xmldc.demo.view.HrData"
                        BeanClass="org.adfemg.xmldc.demo.view.HrData" xmlns="http://xmlns.oracle.com/adfm/datacontrol">
        <Source>
            <definition xmlns="http://adfemg.org/adfm/datacontrol/configuration" dc-operation="getXML" schema="HR.xsd"
                        schema-root="DepartmentList">
                <data-provider class="org.adfemg.datacontrol.xml.provider.data.ResourceDataProvider">
                    <parameters>
                        <parameter name="resource" value="HRdata.xml"/>
                    </parameters>
                </data-provider>
            </definition>
        </Source>
    </AdapterDataControl>

...