static final int 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.
The sun document says this about TYPE_SCROLL_SENSITIVE
As per my understanding says that this is a Scrollable Resultset (Moving forward and backward compability) and what does "sensitive to changes to the data that underlies the ResultSet" mean ?
PavanPL KalyanK wrote:
what does "sensitive to changes to the data that underlies the ResultSet" mean ?
You can have an updatable ResultSet , that's mean, you can change the row values or insert new rows into the Result Set.
Now this quote comes from this link, If you read it fully, all your doubt regarding ResultSet gets clear
An updatable ResultSet object does not necessarily have to be scrollable, but when you are making changes to a result set, you generally want to be able to move around in it. With a scrollable result set, you can move to rows you want to change, and if the type is TYPE_SCROLL_SENSITIVE, you can get the new value in a row after you have changed it.
So basically If you changed the values in Result Set, and you defined "TYPE_SCROLL_SENSITIVE" , you can have a access to those modified/new values, immediately after update !