Forums Register Login

JDBC ResultSet

+Pie Number of slices to send: Send
What the difference between TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE ?
+Pie Number of slices to send: Send
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.
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 945 times.
Similar Threads
not showing JLabel and TextField
difference between sensitive and insensitive of resultset
JDBC
JDBC
TYPE_SCROLL_INSENSITIVE and TYPE_SCROLL_SENSITIVE and isolation levels
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:38:12.