This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes Resultset.getFetchSize() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Resultset.getFetchSize()" Watch "Resultset.getFetchSize()" New topic
Author

Resultset.getFetchSize()

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
Hello all,

In the java API documentation the description for the above method is:

public int getFetchSize()
throws SQLException
Retrieves the fetch size for this ResultSet object.

What is a fetch size? is it the numbe rof return row counts?? or the numbe r of column row count from which the data is fetched?

I think the second ans is right. wanted to confirm.

Thanks,
Trupti
Jim Cheng
Greenhorn

Joined: Dec 08, 2004
Posts: 11
None of them

Fetch size is the number of rows that should be fetched from the database when more rows are needed.

If a fetch size has not been set by calling the method setFetchSize, the return value is implementation-specific.

Jim
 
Don't get me started about those stupid light bulbs.
 
subject: Resultset.getFetchSize()
 
Similar Threads
Reg: Fetch Size
Optimize Oracle Performance?
Table Row slection programmatically
Paging in JDBC 2
Which design pattern JDBC-Resulset implements : Bridge, iterator, composite, factory