Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to find no of records present in resultset objet

 
Baazi Reddy
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai This gopal Iam developing View and Search module for technology forum.

In the view page I want to display number of threads are there for view, by some query Iam able to get records to resultset object.
Using resultset.next and adding those records to Dto object using setter methods, dto is added to list and list to transferred to next layer..
so I want to dispaly no of records present in resultset object and last() and getRow() methods but unable to add this Dto object.

Can any solve this problem for me Iam very thankful to them.
 
Paul Clapham
Sheriff
Posts: 21107
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So you read through the ResultSet, convert each row into an object, and add each object to a list?

In that case the number of rows in the ResultSet is exactly equal to the number of records you added to the list, isn't it? And if this list is any good at all, you should be able to find out how many objects are in the list. So I'm not clear about what your problem is.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic