ADF:绑定基本概念

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/luyushuang/article/details/6765950

声明式绑定是ADF框架的一个重要概念,在ADF中有三个对象来支撑绑定。

DataControls.dcx中描述了所有在设计时定义的data control。

DataBindings.cpx中描述了application在运行时可以使用那些data control,以及页面和page defination的映射。

 <dataControlUsages>
    <BC4JDataControl id="StoreServiceAMDataControl"
                     Package="oracle.fodemo.storefront.store.service"
                     FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
                     SupportsTransactions="true" SupportsFindMode="true"
                     SupportsRangesize="true" SupportsResetState="true"
                     SupportsSortCollection="true"
                     Configuration="StoreServiceAMLocalWeb" syncMode="Immediate"
                     xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
    <BC4JDataControl id="LookupServiceAMDataControl"
                     Package="oracle.fodemo.storefront.lookups"
                     FactoryClass="oracle.adf.model.bc4j.DataControlFactoryImpl"
                     SupportsTransactions="true" SupportsFindMode="true"
                     SupportsRangesize="true" SupportsResetState="true"
                     SupportsSortCollection="true"
                     Configuration="LookupServiceAMLocal" syncMode="Immediate"
                     xmlns="http://xmlns.oracle.com/adfm/datacontrol"/>
  </dataControlUsages>
Page defination中描述了应用页面使用的所有绑定对象。每个页面通常对应一个Page defination。Page defination文件的命名方式为:pageNamePageDef.xml。

  <pageDefinitionUsages>
    <page id="homePageDef"
          path="oracle.fodemo.storefront.pageDefs.homePageDef"/>
      ... ...
  </pageDefinitionUsages>
  <pageMap>

    <page path="/home.jspx" usageId="homePageDef"/>
    ... ...
  </pageMap>


 

展开阅读全文

没有更多推荐了,返回首页