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 及参数 如下图: