File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes first()' method of ResultSetMetaData clas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "first() Watch "first() New topic

first()' method of ResultSetMetaData clas

shivam aggarwal

Joined: Oct 15, 2009
Posts: 8

i tried to 'public void boolean first()' method of ResultSetMetaData class;apart from setting the pointer to first record it also returns boolean value.
so on using it as 'rs.first();'without assigning it to a value ,it gives no errors
Scott Selikoff
Saloon Keeper

Joined: Oct 23, 2005
Posts: 3740

What's your question exactly? first() is a property of ResultSet, not ResultSetMetaData.

[OCA 8 Book] [Blog]
I agree. Here's the link:
subject: first()' method of ResultSetMetaData clas
It's not a secret anymore!