accessorIterator、iterator和methodIterator的区别

Difference between accessorIterator, iterator and methodIterator

我是 ADF BC 的新手,我正在尝试将 accessorIterator 添加到我的绑定中。

但是,我收到以下错误消息:

我想知道访问器迭代器、方法迭代器和迭代器之间有什么区别。我一直在阅读有关 ADF BC 的大量文档,但似乎找不到关于不同迭代器的任何解释。

谢谢

这有点不言自明。

引用文档:

Iterator: Iterates over the data items of a collection.

Method iterator: Iterates the results returned from a method. A method iterator is always related to a method action binding, which creates the binding to the actual method to be invoked. The method action binding is what encapsulates the details about how to invoke the method and what parameters (if any) the method is expecting. The method iterator binding handles iterating over the return from that method.

Accessor iterator: Iterates over detail collections returned by accessor methods. Accessor iterators are always related to a master iterator, which is a method iterator. The accessor iterator returns the detail objects related to the current object in the master (or method) iterator

在大多数情况下,您需要 Iterator 来处理 bc 的数据。

accessorIterator :访问ViewObjects的accessor

迭代器:访问ViewObject。

methodIterator : 访问viewObject的自定义方法。