ADF ViewObjectImpl 的 findByAltKey 方法使用例子

来源:互联网 发布:淘宝店铺如何上架 编辑:程序博客网 时间:2024/05/18 01:36
JAVA代码如下:    //定义VoImpl    ViewObjectImpl vo = this.getExamSingleView();    //将参数装入Key中, 参数 userId,projectId 是定义在 Entity 中的两个参数    Key key =  new Key(new Object[] { userId,projectId });    //AltKey 是定义在 Entity 中的 Alternate Key Name    RowIterator rowIts = vo.findByAltKey("AltKey", key, -1, true);    Row[] rows = rowIts.getAllRowsInRange();Entity的 Alternate Key 及参数 如下图:

0 0