• Post Reply Bookmark Topic Watch Topic
  • New Topic

JDBC ResultSet  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What the difference between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE ?
 
author & internet detective
Marshal
Posts: 37714
579
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!