Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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 Elasticsearch in Action this week in the Big Data 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: 3739

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

[OCA 8 Book] [Blog]
wood burning stoves
subject: first()' method of ResultSetMetaData clas