Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resultset scrollability

 
asit dhal
Greenhorn
Posts: 13
C++ Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the following resultset



Here, my reslutset is scroll insensitive. hence any changes to the database (through other session which is committed) shouldn't be visible to the application after the resultset query is executes. But in my case the changes are made visible.

Can somebody tell me why ??
 
Martin Vajsar
Sheriff
Posts: 3752
62
Chrome Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which database and JDBC driver are you using? Read the documentation of the driver, a few details might be in there.

Also, the Javadoc (JDK6) for the ResultSet.TYPE_SCROLL_INSENSITIVE constant says:
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.

(Emphasis added.)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic