aspose file tools*
The moose likes JDBC and the fly likes JDBC ResultSet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "JDBC ResultSet" Watch "JDBC ResultSet" New topic
Author

JDBC ResultSet

Taresh Nama
Greenhorn

Joined: Jul 27, 2006
Posts: 5
What the difference between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE ?


Taresh Nama
s/w Eng.
TCS Mumbai
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Taresh,
From the JavaDoc:
TYPE_SCROLL_INSENSITIVE
The constant indicating the type for a ResultSet object that is scrollable but generally not sensitive to changes to the data that underlies the ResultSet.

TYPE_SCROLL_SENSITIVE
The constant indicating the type for a ResultSet object that is scrollable and generally sensitive to changes to the data that underlies the ResultSet.


So the difference is whether the ResultSet will notice if the data changes in the database.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JDBC ResultSet