Get Row Count in Application Module - ADF Java code
public intgetRowCount() {
ViewObject vo = this.getBillableLineNumVo1();
vo.executeQuery();
ViewObject vo = this.getBillableLineNumVo1();
vo.executeQuery();
RowSetIterator rsIterator = vo.createRowSetIterator(null);
rsIterator.reset();
while (rsIterator.hasNext()) {
Row row = rsIterator.next();
val = ((BigDecimal)row.getAttribute("Attribute1")).longValue();
System.out.println(" Count from the VO is :::: " +
row.getAttributeCount());
}
rsIterator.closeRowSetIterator();
while (rsIterator.hasNext()) {
Row row = rsIterator.next();
val = ((BigDecimal)row.getAttribute("Attribute1")).longValue();
System.out.println(" Count from the VO is :::: " +
row.getAttributeCount());
}
rsIterator.closeRowSetIterator();
return val;
}
}
No comments:
Post a Comment