wood burning stoves 2.0*
The moose likes JDBC and the fly likes TYPE_SCROLL_SENSITIVE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "TYPE_SCROLL_SENSITIVE" Watch "TYPE_SCROLL_SENSITIVE" New topic
Author

TYPE_SCROLL_SENSITIVE

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212

TYPE_SCROLL_SENSITIVE

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 ?

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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 !


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Thank you very much

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

You're welcome
 
wood burning stoves
 
subject: TYPE_SCROLL_SENSITIVE