Here is a sample.. public void onCommit(){ ContactVOImpl contactVO=(ContactVOImpl)this.getContactVO(); RowSetIterator rowSet = contactVO.createRowSetIterator(null); while(row.hasNext()){ ContactVORowImpl row1=(ContactVORowImpl) rowSet .next(); System.out.println("ContactId " +row1.getContactid()); System.out.println("CustomerId "+row1.getCustomerid()); }
rowSet.closeRowSetIterator(); //close the Iterator getDBTransaction().commit(); } where as the below code...starts printing from 2nd column.. public void onCommit(){ ContactVOImpl contactVO=(ContactVOImpl)this.getContactVO(); while(contactVO.hasNext()){ ContactVORowImpl row1=(ContactVORowImpl) contactVO.next(); System.out.println("ContactId " +row1.getContactid()); System.out.println("CustomerId "+row1.getCustomerid()); } getDBTransaction().commit(); }
No comments:
Post a Comment