public List getFormUsagesForADataElement(Object aDeIdseq, PageIterator pgIter) throws Exception { List results = new ArrayList(29); Row[] queryResults; FormUsagesForACdeViewRowImpl usageRow; ViewObject view = this.getFormUsagesForACdeView(); view.setWhereClause("DE_IDSEQ = '" + aDeIdseq + "'"); view.executeQuery(); pgIter.setScrollableObject(view); queryResults = (Row[]) pgIter.getRowsInRange(); for (int i = 0; i < queryResults.length; i++) { usageRow = (FormUsagesForACdeViewRowImpl) queryResults[i]; results.add(new BC4JDataElementFormUsageTO(usageRow)); } return results; }
/** Custom Method: Classification Schemes Author: Ram Chilukuri */ public Vector getClassificationSchemes(Object aDeIdseq, PageIterator pgIter) throws Exception { NCIBC4JUtil bc4jUtil = new NCIBC4JUtil(); Vector rows = new Vector(); Row[] queryResults; try { ViewObject view = getClassificationsView(); ViewObjectImpl view1 = (ClassificationsViewImpl) bc4jUtil.cloneViewObject(view); view1.setWhereClause(" AC_IDSEQ = '" + aDeIdseq + "'"); view1.executeQuery(); pgIter.setScrollableObject(view1); queryResults = (Row[]) pgIter.getRowsInRange(); rows = new Vector(queryResults.length); for (int i = 0; i < queryResults.length; i++) { rows.addElement( new BC4JClassificationsTransferObject((ClassificationsViewRowImpl) queryResults[i])); } } catch (Exception e) { throw e; } return rows; }