【发布时间】:2015-11-08 15:39:04
【问题描述】:
1.3 我有两个 adf 表,一个用于主控表,第二个用于主控详细信息瞬态 VO 的详细信息。 我正在以编程方式填充行以查看对象,当删除任何行时,迭代器仅包含所选行的详细信息。 例如: 1 -一个 -b
2 -C -d
3 -e -f
当我删除 2 时,迭代器仅包含所选项目:1-a-b
ViewObject masterVO = this.getSearchAttributesTrVO();
masterVO.executeQuery();
RowSet masterList = (RowSet) masterVO;
Row[] master = masterList.getAllRowsInRange();
for (int x = 0; x < master.length; x++) {
Row masterRow = master[x];
System.out.println("*** master AttributeId=" + master[x].getAttribute("AttributeId"));
RowSet detailList = (RowSet) masterRow.getAttribute("ConditionsVO");
Row[] detail = detailList.getAllRowsInRange();
for (int y = 0; y < detail.length; y++) {
System.out.println("*** detail Id/AttributeId=" + detail[y].getAttribute("Id") + "/" +
detail[y].getAttribute("AttributeId"));
}
所以我需要读取 VO 中的所有值,而不仅仅是所选项目的详细信息。
有什么建议吗?
【问题讨论】:
标签: java oracle-adf jdeveloper