File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

resultset scrollability

 
asit dhal
Greenhorn
Posts: 13
C++ Java Oracle
  • 0
  • 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
Pie
Posts: 3747
62
Chrome Netbeans IDE Oracle
  • 0
  • 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