Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2007, 11:25 PM
Member
 
Join Date: Nov 2007
Posts: 3
siwa is on a distinguished road
Jdbc
Hi,
Can any one help me please

In my application the resultset got 49 records.
rs.getFetchSize() shows 49, but when i say while(rs.next()) the pointer is not moving to the rs.next() block.
Can anyone help me how to work out, and im sure the resultset is scrollable.

Thanks.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-08-2007, 12:21 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Can you post relevant section of your program?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 11-09-2007, 12:13 AM
Member
 
Join Date: Nov 2007
Posts: 3
siwa is on a distinguished road
Thank you for ur reply,

The code looks like this
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 11-09-2007, 12:18 AM
Member
 
Join Date: Nov 2007
Posts: 3
siwa is on a distinguished road
Thankyou for ur reply
The code looks like this
ResultSet rs=(ResultSet)element;
//System.out.println(rs.getFetchSize())----it is giving 49
while(rs.next())
{
if(flag)
*******
else ********

}
the control is not going into the rs.next() block, and Im sure the typecasting is correct as ResultSet.

Thanks.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 11-09-2007, 09:31 AM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
That flag looks suspicious. I dont see anywhere you set it to true or false. I can comment better if you give the actual code there..
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to use JDBC Template classes to control basic JDBC processing and error handling Java Tip Java Tips 0 04-01-2008 12:17 PM
How to use JDBC Template classes to control basic JDBC processing and error handling JavaBean Java Tips 0 09-28-2007 02:56 PM
JDBC problem Swamipsn New To Java 1 08-13-2007 08:05 PM
Ha-jdbc 2.0 JavaBean Java Announcements 0 07-17-2007 07:40 PM
Help with JDBC Eric Database 2 06-28-2007 08:00 PM


All times are GMT +3. The time now is 01:18 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org